##// END OF EJS Templates
disable calltips in PySide < 1.0.7 to prevent segfault...
MinRK -
Show More
@@ -7,6 +7,7 b' import time'
7
7
8 # System library imports
8 # System library imports
9 from pygments.lexers import PythonLexer
9 from pygments.lexers import PythonLexer
10 from IPython.external import qt
10 from IPython.external.qt import QtCore, QtGui
11 from IPython.external.qt import QtCore, QtGui
11
12
12 # Local imports
13 # Local imports
@@ -118,6 +119,11 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):'
118
119
119 def __init__(self, *args, **kw):
120 def __init__(self, *args, **kw):
120 super(FrontendWidget, self).__init__(*args, **kw)
121 super(FrontendWidget, self).__init__(*args, **kw)
122 # forcefully disable calltips if PySide is < 1.0.7, because they crash
123 if qt.QT_API == qt.QT_API_PYSIDE:
124 import PySide
125 if PySide.__version_info__ < (1,0,7):
126 self.enable_calltips = False
121
127
122 # FrontendWidget protected variables.
128 # FrontendWidget protected variables.
123 self._bracket_matcher = BracketMatcher(self._control)
129 self._bracket_matcher = BracketMatcher(self._control)
General Comments 0
You need to be logged in to leave comments. Login now