Module Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Import alias ImportFrom alias identifier Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Pass decorator_list FunctionDef arguments args defaults body Expr Str Pass decorator_list If CompareEq AttributeLoad NameLoad attr Str body Import alias Import alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Import alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Print Str Return Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Dict orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIn NameLoad TupleLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Pass decorator_list decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr
N/A N/A 
Inputhook management for GUI event loop integration.
 N/A N/A N/A ctypes N/A N/A N/A ImportError N/A N/A ctypes None N/A N/A SystemError N/A N/A ctypes None N/A os N/A sys distutils.version LooseVersion V N/A GUI_WX wx N/A GUI_QT qt N/A GUI_QT4 qt4 N/A GUI_GTK gtk N/A GUI_TK tk N/A GUI_OSX osx N/A GUI_PYGLET pyglet N/A GUI_GTK3 gtk3 N/A GUI_NONE none _stdin_ready_posix N/A N/A N/A N/A N/A Return True if there's something to read on stdin (posix version). N/A N/A infds outfds erfds N/A N/A select select N/A N/A sys stdin N/A N/A 0 N/A N/A bool infds N/A _stdin_ready_nt N/A N/A N/A N/A N/A Return True if there's something to read on stdin (nt version). N/A N/A N/A msvcrt kbhit N/A _stdin_ready_other N/A N/A N/A N/A N/A Return True, assuming there's something to read on stdin. N/A True N/A _ignore_CTRL_C_posix N/A N/A N/A N/A N/A Ignore CTRL+C (SIGINT). N/A N/A N/A signal signal N/A signal SIGINT N/A signal SIG_IGN N/A _allow_CTRL_C_posix N/A N/A N/A N/A N/A Take CTRL+C into account (SIGINT). N/A N/A N/A signal signal N/A signal SIGINT N/A signal default_int_handler N/A _ignore_CTRL_C_other N/A N/A N/A N/A N/A Ignore CTRL+C (not implemented). N/A N/A _allow_CTRL_C_other N/A N/A N/A N/A N/A Take CTRL+C into account (not implemented). N/A N/A N/A N/A N/A os name posix N/A N/A select N/A signal N/A stdin_ready _stdin_ready_posix N/A ignore_CTRL_C _ignore_CTRL_C_posix N/A allow_CTRL_C _allow_CTRL_C_posix N/A N/A N/A N/A os name nt N/A N/A msvcrt N/A stdin_ready _stdin_ready_nt N/A ignore_CTRL_C _ignore_CTRL_C_other N/A allow_CTRL_C _allow_CTRL_C_other N/A N/A stdin_ready _stdin_ready_other N/A ignore_CTRL_C _ignore_CTRL_C_other N/A allow_CTRL_C _allow_CTRL_C_other InputHookManager N/A object N/A N/A Manage PyOS_InputHook for different GUI toolkits.

    This class installs various hooks under ``PyOSInputHook`` to handle
    GUI event loop integration.
     __init__ N/A N/A self N/A N/A N/A N/A ctypes None N/A N/A IPython GUI event loop requires ctypes, %gui will not be available N/A N/A N/A self PYFUNC N/A N/A ctypes PYFUNCTYPE N/A ctypes c_int N/A N/A self guihooks N/A N/A N/A self aliases N/A N/A N/A self apps N/A N/A N/A N/A self _reset N/A _reset N/A N/A self N/A N/A N/A N/A self _callback_pyfunctype None N/A N/A self _callback None N/A N/A self _installed False N/A N/A self _current_gui None N/A get_pyos_inputhook N/A N/A self N/A N/A N/A Return the current PyOS_InputHook as a ctypes.c_void_p. N/A N/A N/A N/A ctypes c_void_p in_dll N/A ctypes pythonapi PyOS_InputHook N/A get_pyos_inputhook_as_func N/A N/A self N/A N/A N/A Return the current PyOS_InputHook as a ctypes.PYFUNCYPE. N/A N/A N/A N/A self PYFUNC in_dll N/A ctypes pythonapi PyOS_InputHook N/A set_inputhook N/A N/A self callback N/A N/A N/A Set PyOS_InputHook to callback and return the previous one. N/A N/A ignore_CTRL_C N/A N/A self _callback callback N/A N/A self _callback_pyfunctype N/A N/A self PYFUNC callback N/A pyos_inputhook_ptr N/A N/A self get_pyos_inputhook N/A original N/A N/A self get_pyos_inputhook_as_func N/A N/A pyos_inputhook_ptr value N/A N/A N/A ctypes cast N/A self _callback_pyfunctype N/A ctypes c_void_p value N/A N/A self _installed True N/A original N/A clear_inputhook N/A N/A self app N/A None N/A N/A 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`. N/A pyos_inputhook_ptr N/A N/A self get_pyos_inputhook N/A original N/A N/A self get_pyos_inputhook_as_func N/A N/A pyos_inputhook_ptr value N/A N/A N/A ctypes c_void_p None value N/A N/A allow_CTRL_C N/A N/A N/A self _reset N/A original N/A clear_app_refs N/A N/A self gui N/A None N/A N/A Clear IPython's internal reference to an application instance.

        Whenever we create an app for a user on qt4 or wx, we hold a
        reference to the app.  This is needed because in some cases bad things
        can happen if a user doesn't hold a reference themselves.  This
        method is provided to clear the references we are holding.

        Parameters
        ----------
        gui : None or str
            If None, clear all app references.  If ('wx', 'qt4') clear
            the app for that toolkit.  References are not held for gtk or tk
            as those toolkits don't have the notion of an app.
         N/A N/A gui None N/A N/A N/A self apps N/A N/A N/A N/A gui N/A self apps N/A N/A N/A N/A self apps N/A gui N/A register N/A N/A self toolkitname N/A aliases N/A N/A 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):
                    ...
         decorator N/A N/A cls N/A N/A N/A inst N/A cls self N/A N/A N/A self guihooks N/A toolkitname inst N/A a aliases N/A N/A N/A N/A self aliases N/A a toolkitname N/A cls N/A N/A decorator N/A current_gui N/A N/A self N/A N/A N/A Return a string indicating the currently active GUI or None. N/A N/A self _current_gui N/A enable_gui N/A N/A self gui app N/A None None N/A N/A Switch amongst GUI input hooks by name.

        This is a higher level method than :meth:`set_inputhook` - it uses the
        GUI name to look up a registered object which enables the input hook
        for that GUI.

        Parameters
        ----------
        gui : optional, string or None
          If None (or 'none'), clears input hook, otherwise it must be one
          of the recognized GUI names (see ``GUI_*`` constants in module).

        app : optional, existing application object.
          For toolkits that have the concept of a global app, you can supply an
          existing one.  If not given, the toolkit will be probed for one, and if
          none is found, a new one will be created.  Note that GTK does not have
          this concept, and passing an app if ``gui=="GTK"`` will raise an error.

        Returns
        -------
        The output of the underlying gui switch routine, typically the actual
        PyOS_InputHook wrapper object or the GUI toolkit app created, if there was
        one.
         N/A N/A gui N/A None GUI_NONE N/A N/A N/A N/A self disable_gui N/A N/A gui N/A self aliases N/A N/A N/A N/A self enable_gui N/A N/A self aliases N/A gui app N/A N/A N/A gui_hook N/A N/A self guihooks N/A gui N/A N/A N/A KeyError N/A N/A e Invalid GUI request {!r}, valid ones are: {} N/A N/A ValueError N/A N/A e format gui N/A N/A ,  join N/A self guihooks N/A N/A self _current_gui gui N/A app N/A N/A gui_hook enable app N/A N/A app None N/A N/A N/A app _in_event_loop True N/A N/A N/A self apps N/A gui app N/A app N/A disable_gui N/A N/A self N/A N/A N/A Disable GUI event loop integration.
        
        If an application was registered, this sets its ``_in_event_loop``
        attribute to False. It then calls :meth:`clear_inputhook`.
         N/A gui N/A self _current_gui N/A N/A gui N/A self apps N/A N/A N/A N/A N/A self apps N/A gui _in_event_loop False N/A N/A N/A self clear_inputhook N/A N/A InputHookBase N/A object N/A N/A Base class for input hooks for specific toolkits.
    
    Subclasses should define an :meth:`enable` method with one argument, ``app``,
    which will either be an instance of the toolkit's application class, or None.
    They may also define a :meth:`disable` method with no arguments.
     __init__ N/A N/A self manager N/A N/A N/A N/A self manager manager N/A disable N/A N/A self N/A N/A N/A N/A N/A N/A inputhook_manager N/A InputHookManager NullInputHook N/A InputHookBase N/A N/A A null inputhook that doesn't need to do anything enable N/A N/A self app N/A None N/A N/A N/A N/A N/A N/A inputhook_manager register osx N/A clear_inputhook N/A inputhook_manager clear_inputhook N/A set_inputhook N/A inputhook_manager set_inputhook N/A current_gui N/A inputhook_manager current_gui N/A clear_app_refs N/A inputhook_manager clear_app_refs N/A enable_gui N/A inputhook_manager enable_gui N/A disable_gui N/A inputhook_manager disable_gui N/A register N/A inputhook_manager register N/A guis N/A inputhook_manager guihooks