
    Mh{	                     R    d Z ddlZddlZej                                         d ZdS )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                     dS )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                     dS )NF)gtk	main_quit)akws     b/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/terminal/pt_inputhooks/gtk.py
_main_quitzinputhook.<locals>._main_quit7   s    u    N)gobjectio_add_watchfilenoIO_INr   main)contextr
   s     r	   	inputhookr   -   sC       ))7=*EEEHJJJJJr   )__doc__r   r   gdkthreads_initr    r   r	   <module>r      sY   @                   r   