##// END OF EJS Templates
Add prompt_toolkit input hooks for wx
Add prompt_toolkit input hooks for wx

File last commit:

r21941:48013ca5
r21941:48013ca5
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