(gui)
| 32 | ', '.join(backends + sorted(registered))) |
| 33 | |
| 34 | def get_inputhook_name_and_func(gui): |
| 35 | if gui in registered: |
| 36 | return gui, registered[gui] |
| 37 | |
| 38 | if gui not in backends: |
| 39 | raise UnknownBackend(gui) |
| 40 | |
| 41 | if gui in aliases: |
| 42 | return get_inputhook_name_and_func(aliases[gui]) |
| 43 | |
| 44 | gui_mod = gui |
| 45 | if gui == 'qt5': |
| 46 | os.environ['QT_API'] = 'pyqt5' |
| 47 | gui_mod = 'qt' |
| 48 | |
| 49 | mod = importlib.import_module('IPython.terminal.pt_inputhooks.'+gui_mod) |
| 50 | return gui, mod.inputhook |
no test coverage detected