##// END OF EJS Templates
Rename PTInteractiveShell to TerminalInteractiveShell...
Rename PTInteractiveShell to TerminalInteractiveShell This means that existing config will get applied, even if not all of it has the desired effect. I haven't thought of any adverse effects of renaming this.

File last commit:

r21934:c0fffd17
r22112:d9bbe522
Show More
qt.py
11 lines | 384 B | text/x-python | PythonLexer
from IPython.external.qt_for_kernel import QtCore, QtGui
def inputhook(context):
app = QtCore.QCoreApplication.instance()
if not app:
return
event_loop = QtCore.QEventLoop(app)
notifier = QtCore.QSocketNotifier(context.fileno(), QtCore.QSocketNotifier.Read)
notifier.setEnabled(True)
notifier.activated.connect(event_loop.exit)
event_loop.exec_()