##// 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:

r21941:48013ca5
r22112:d9bbe522
Show More
__init__.py
16 lines | 320 B | text/x-python | PythonLexer
import importlib
import os
aliases = {
'qt4': 'qt',
}
def get_inputhook_func(gui):
if gui in aliases:
return get_inputhook_func(aliases[gui])
if gui == 'qt5':
os.environ['QT_API'] = 'pyqt5'
mod = importlib.import_module('IPython.terminal.pt_inputhooks.'+gui)
return mod.inputhook