##// END OF EJS Templates
put back null gui hook for osx...
MinRK -
Show More
@@ -279,6 +279,12 b' class InputHookBase(object):'
279 279
280 280 inputhook_manager = InputHookManager()
281 281
282 @inputhook_manager.register('osx')
283 class NullInputHook(InputHookBase):
284 """A null inputhook that doesn't need to do anything"""
285 def enable(self, app=None):
286 pass
287
282 288 @inputhook_manager.register('wx')
283 289 class WxInputHook(InputHookBase):
284 290 def enable(self, app=None):
@@ -562,6 +568,7 b' def _make_deprecated_enable(name):'
562 568 warn("This function is deprecated - use enable_gui(%r) instead" % name)
563 569 inputhook_manager.enable_gui(name, app)
564 570
571 enable_osx = _make_deprecated_enable('osx')
565 572 enable_wx = _make_deprecated_enable('wx')
566 573 enable_qt4 = _make_deprecated_enable('qt4')
567 574 enable_gtk = _make_deprecated_enable('gtk')
@@ -574,4 +581,4 b' def _deprecated_disable():'
574 581 warn("This function is deprecated: use disable_gui() instead")
575 582 inputhook_manager.disable_gui()
576 583 disable_wx = disable_qt4 = disable_gtk = disable_gtk3 = disable_glut = \
577 disable_pyglet = _deprecated_disable
584 disable_pyglet = disable_osx = _deprecated_disable
General Comments 0
You need to be logged in to leave comments. Login now