
    ^h{	                     R    S r SSKrSSKr\R                  R	                  5         S rg)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                     S n[         R                  " U R                  5       [         R                  U5        [        R
                  " 5         g)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                  .    [         R                  " 5         g)NF)gtk	main_quit)akws     \/home/james-whalen/.local/lib/python3.13/site-packages/IPython/terminal/pt_inputhooks/gtk.py
_main_quit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   