
    f{	                     R    d Z ddlZddlZej                  j	                          d Zy)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                  | j                         t         j                  |       t	        j
                          y)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                          y)NF)gtk	main_quit)akws     ]/var/www/cvtools/html/venv/lib/python3.12/site-packages/IPython/terminal/pt_inputhooks/gtk.py
_main_quitzinputhook.<locals>._main_quit7   s        N)gobjectio_add_watchfilenoIO_INr   main)contextr
   s     r	   	inputhookr   -   s/     )7==*EHHJr   )__doc__r   r   gdkthreads_initr    r   r	   <module>r      s'   @     r   