From 88bc745df6c262f906a085057f0177c60f74d287 2015-05-08 23:56:45 From: Erik Hvatum Date: 2015-05-08 23:56:45 Subject: [PATCH] create_inputhook_qt4 wants an InputHookManager object as its first argument, not an InputHookBase. However, we get away with supplying the wrong object until someone hits ctrl-c. Passing the right object makes graceful ctrl-c event loop integration work properly, rather than causing IPython to exit. This seems like a straightforward fix, but I may be missing something. --- diff --git a/IPython/lib/inputhook.py b/IPython/lib/inputhook.py index baeed8f..4ae2cb3 100644 --- a/IPython/lib/inputhook.py +++ b/IPython/lib/inputhook.py @@ -363,7 +363,7 @@ class Qt4InputHook(InputHookBase): app = QtGui.QApplication(sys.argv) """ from IPython.lib.inputhookqt4 import create_inputhook_qt4 - app, inputhook_qt4 = create_inputhook_qt4(self, app) + app, inputhook_qt4 = create_inputhook_qt4(self.manager, app) self.manager.set_inputhook(inputhook_qt4) if _use_appnope(): from appnope import nope