##// END OF EJS Templates
%gui qt5
Stefan Zimmermann -
Show More
@@ -525,6 +525,7 b' Defaulting color scheme to \'NoColor\'"""'
525
525
526 %gui wx # enable wxPython event loop integration
526 %gui wx # enable wxPython event loop integration
527 %gui qt4|qt # enable PyQt4 event loop integration
527 %gui qt4|qt # enable PyQt4 event loop integration
528 %gui qt5 # enable PyQt5 event loop integration
528 %gui gtk # enable PyGTK event loop integration
529 %gui gtk # enable PyGTK event loop integration
529 %gui gtk3 # enable Gtk3 event loop integration
530 %gui gtk3 # enable Gtk3 event loop integration
530 %gui tk # enable Tk event loop integration
531 %gui tk # enable Tk event loop integration
@@ -369,6 +369,14 b' class Qt4InputHook(InputHookBase):'
369 from IPython.external.appnope import nap
369 from IPython.external.appnope import nap
370 nap()
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 @inputhook_manager.register('gtk')
380 @inputhook_manager.register('gtk')
373 class GtkInputHook(InputHookBase):
381 class GtkInputHook(InputHookBase):
374 def enable(self, app=None):
382 def enable(self, app=None):
General Comments 0
You need to be logged in to leave comments. Login now