class_docstr: DEPRECATED since IPython 5.0
  
  Manage PyOS_InputHook for different GUI toolkits.
  
  This class installs various hooks under ``PyOSInputHook`` to handle
  GUI event loop integration.
class_docstr_tok: ["DEPRECATED","since","IPython","5.0","Manage","PyOS_InputHook","for","different","GUI","toolkits",".","This","class","installs","various","hooks","under","``","PyOSInputHook","``","to","handle","GUI","event","loop","integration","."]
docstr: DEPRECATED since IPython 5.0
  
  Register a class to provide the event loop for a given GUI.
  
  This is intended to be used as a class decorator. It should be passed
  the names with which to register this GUI integration. The classes
  themselves should subclass :class:`InputHookBase`.
  
  ::
  
      @inputhook_manager.register('qt')
      class QtInputHook(InputHookBase):
          def enable(self, app=None):
              ...
code: def register(self, toolkitname, *aliases):
      """DEPRECATED since IPython 5.0
  
      Register a class to provide the event loop for a given GUI.
  
      This is intended to be used as a class decorator. It should be passed
      the names with which to register this GUI integration. The classes
      themselves should subclass :class:`InputHookBase`.
  
      ::
  
          @inputhook_manager.register('qt')
          class QtInputHook(InputHookBase):
              def enable(self, app=None):
                  ...
      """
      warn(
          "`register` is deprecated since IPython 5.0 and will be removed in future versions.",
          DeprecationWarning,
          stacklevel=2,
      )
  
      def decorator(cls):
          if ctypes is not None:
              inst = cls(self)
              self.guihooks[toolkitname] = inst
              for a in aliases:
                  self.aliases[a] = toolkitname
          return cls
  
      return decorator
  
imports: import os
  import platform
  import sys
  from distutils.version import LooseVersion
  from warnings import warn
label_desc: Use image node_id 8 for calling the InputHookManager obj's underlying member method code with example usage: obj.register(toolkitname) and returns: decorator, cls