Show More
@@ -525,6 +525,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
525 | 525 | |
|
526 | 526 | %gui wx # enable wxPython event loop integration |
|
527 | 527 | %gui qt4|qt # enable PyQt4 event loop integration |
|
528 | %gui qt5 # enable PyQt5 event loop integration | |
|
528 | 529 | %gui gtk # enable PyGTK event loop integration |
|
529 | 530 | %gui gtk3 # enable Gtk3 event loop integration |
|
530 | 531 | %gui tk # enable Tk event loop integration |
@@ -369,6 +369,14 b' class Qt4InputHook(InputHookBase):' | |||
|
369 | 369 | from IPython.external.appnope import nap |
|
370 | 370 | nap() |
|
371 | 371 | |
|
372 | ||
|
373 | @inputhook_manager.register('qt5') | |
|
374 | class Qt5InputHook(Qt4InputHook): | |
|
375 | def enable(self, app=None): | |
|
376 | os.environ['QT_API'] = 'pyqt5' | |
|
377 | return Qt4InputHook.enable(self, app) | |
|
378 | ||
|
379 | ||
|
372 | 380 | @inputhook_manager.register('gtk') |
|
373 | 381 | class GtkInputHook(InputHookBase): |
|
374 | 382 | def enable(self, app=None): |
General Comments 0
You need to be logged in to leave comments.
Login now