Show More
@@ -36,7 +36,7 class CallTipWidget(QtGui.QLabel): | |||||
36 | self.setMargin(1 + self.style().pixelMetric( |
|
36 | self.setMargin(1 + self.style().pixelMetric( | |
37 | QtGui.QStyle.PM_ToolTipLabelFrameWidth, None, self)) |
|
37 | QtGui.QStyle.PM_ToolTipLabelFrameWidth, None, self)) | |
38 | self.setWindowOpacity(self.style().styleHint( |
|
38 | self.setWindowOpacity(self.style().styleHint( | |
39 | QtGui.QStyle.SH_ToolTipLabel_Opacity, None, self) / 255.0) |
|
39 | QtGui.QStyle.SH_ToolTipLabel_Opacity, None, self, None) / 255.0) | |
40 |
|
40 | |||
41 | def eventFilter(self, obj, event): |
|
41 | def eventFilter(self, obj, event): | |
42 | """ Reimplemented to hide on certain key presses and on text edit focus |
|
42 | """ Reimplemented to hide on certain key presses and on text edit focus |
@@ -1,9 +1,5 | |||||
1 | """ A FrontendWidget that emulates the interface of the console IPython and |
|
1 | """ A FrontendWidget that emulates the interface of the console IPython and | |
2 | supports the additional functionality provided by the IPython kernel. |
|
2 | supports the additional functionality provided by the IPython kernel. | |
3 |
|
||||
4 | TODO: Add support for retrieving the system default editor. Requires code |
|
|||
5 | paths for Windows (use the registry), Mac OS (use LaunchServices), and |
|
|||
6 | Linux (use the xdg system). |
|
|||
7 | """ |
|
3 | """ | |
8 |
|
4 | |||
9 | #----------------------------------------------------------------------------- |
|
5 | #----------------------------------------------------------------------------- | |
@@ -484,7 +480,7 class IPythonWidget(FrontendWidget): | |||||
484 | if self._page_control: |
|
480 | if self._page_control: | |
485 | self._page_control.document().setDefaultStyleSheet(self.style_sheet) |
|
481 | self._page_control.document().setDefaultStyleSheet(self.style_sheet) | |
486 |
|
482 | |||
487 |
bg_color = self._control.palette(). |
|
483 | bg_color = self._control.palette().window().color() | |
488 | self._ansi_processor.set_background_color(bg_color) |
|
484 | self._ansi_processor.set_background_color(bg_color) | |
489 |
|
485 | |||
490 | def _syntax_style_changed(self): |
|
486 | def _syntax_style_changed(self): |
General Comments 0
You need to be logged in to leave comments.
Login now