Show More
@@ -16,6 +16,7 Author: Christian Boos | |||||
16 | # Imports |
|
16 | # Imports | |
17 | #----------------------------------------------------------------------------- |
|
17 | #----------------------------------------------------------------------------- | |
18 |
|
18 | |||
|
19 | from IPython.core.interactiveshell import InteractiveShell | |||
19 | from IPython.external.qt_for_kernel import QtCore, QtGui |
|
20 | from IPython.external.qt_for_kernel import QtCore, QtGui | |
20 | from IPython.lib.inputhook import allow_CTRL_C, ignore_CTRL_C, stdin_ready |
|
21 | from IPython.lib.inputhook import allow_CTRL_C, ignore_CTRL_C, stdin_ready | |
21 |
|
22 | |||
@@ -56,7 +57,7 def create_inputhook_qt4(mgr, app=None): | |||||
56 | app = QtGui.QApplication([" "]) |
|
57 | app = QtGui.QApplication([" "]) | |
57 |
|
58 | |||
58 | # Re-use previously created inputhook if any |
|
59 | # Re-use previously created inputhook if any | |
59 | ip = get_ipython() |
|
60 | ip = InteractiveShell.instance() | |
60 | if hasattr(ip, '_inputhook_qt4'): |
|
61 | if hasattr(ip, '_inputhook_qt4'): | |
61 | return app, ip._inputhook_qt4 |
|
62 | return app, ip._inputhook_qt4 | |
62 |
|
63 |
General Comments 0
You need to be logged in to leave comments.
Login now