← Back
Editing: gtk.cpython-311.pyc
� �@�cy � �R � d Z ddlZddlZej � � � d� ZdS )z� PyGTK input hook for prompt_toolkit. Listens on the pipe prompt_toolkit sets up for a notification that it should return control to the terminal event loop. � Nc � � d� }t j | � � � t j |� � t j � � dS )z� When the eventloop of prompt-toolkit is idle, call this inputhook. This will run the GTK main loop until the file descriptor `context.fileno()` becomes ready. :param context: An `InputHookContext` instance. c �, � t j � � dS )NF)�gtk� main_quit)�a�kws �D/usr/lib/python3/dist-packages/IPython/terminal/pt_inputhooks/gtk.py� _main_quitzinputhook.<locals>._main_quit5 s � �� �����u� N)�gobject�io_add_watch�fileno�IO_INr �main)�contextr s r � inputhookr , sC � �� � � �����)�)�7�=�*�E�E�E��H�J�J�J�J�Jr )�__doc__r r �gdk�threads_initr � r r �<module>r sY ��@� � � � � � � � � � �� � � � � �� � � � r
Save File
Cancel