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
  
  Set PyOS_InputHook to NULL and return the previous one.
  
  Parameters
  ----------
  app : optional, ignored
    This parameter is allowed only so that clear_inputhook() can be
    called with a similar interface as all the ``enable_*`` methods.  But
    the actual value of the parameter is ignored.  This uniform interface
    makes it easier to have user-level entry points in the main IPython
    app like :meth:`enable_gui`.
code: def clear_inputhook(self, app=None):
      """DEPRECATED since IPython 5.0
  
      Set PyOS_InputHook to NULL and return the previous one.
  
      Parameters
      ----------
      app : optional, ignored
        This parameter is allowed only so that clear_inputhook() can be
        called with a similar interface as all the ``enable_*`` methods.  But
        the actual value of the parameter is ignored.  This uniform interface
        makes it easier to have user-level entry points in the main IPython
        app like :meth:`enable_gui`."""
      warn(
          "`clear_inputhook` is deprecated since IPython 5.0 and will be removed in future versions.",
          DeprecationWarning,
          stacklevel=2,
      )
      pyos_inputhook_ptr = self.get_pyos_inputhook()
      original = self.get_pyos_inputhook_as_func()
      pyos_inputhook_ptr.value = ctypes.c_void_p(None).value
      allow_CTRL_C()
      self._reset()
      return original
  
imports: import os
  import platform
  import sys
  from distutils.version import LooseVersion
  from warnings import warn
label_desc: Use image node_id 6 for calling the InputHookManager obj's underlying member method code with example usage: obj.clear_inputhook(app) and returns: original