
    \d                     z    d Z ddlmZ ddlmZ  G d dej                  Z G d dej                  Zd Z	d	gZ
d
S )a  
This module provides support for Twisted to interact with the gtk3 mainloop
via Gobject introspection. This is like gi, but slightly slower and requires a
working $DISPLAY.

In order to use this support, simply do the following::

    from twisted.internet import gtk3reactor
    gtk3reactor.install()

If you wish to use a GApplication, register it with the reactor::

    from twisted.internet import reactor
    reactor.registerGApplication(app)

Then use twisted.internet APIs as usual.
    )	gireactor)runtimec                       e Zd ZdZd ZdS )Gtk3Reactorz/
    A reactor using the gtk3+ event loop.
    c                 H    t           j                            | d           dS z:
        Override init to set the C{useGtk} flag.
        T)useGtkN)r   	GIReactor__init__selfs    <lib/python3.11/site-packages/twisted/internet/gtk3reactor.pyr   zGtk3Reactor.__init__   s&     	$$T$$77777    N__name__
__module____qualname____doc__r    r   r   r   r      s-         8 8 8 8 8r   r   c                       e Zd ZdZd ZdS )PortableGtk3Reactorz$
    Portable GTK+ 3.x reactor.
    c                 H    t           j                            | d           dS r   )r   PortableGIReactorr   r   s    r   r   zPortableGtk3Reactor.__init__+   s&     	#,,T$,?????r   Nr   r   r   r   r   r   &   s2         @ @ @ @ @r   r   c                      t           j                                        dk    rt                      } nt	                      } ddlm}  ||            | S )zM
    Configure the Twisted mainloop to be run inside the gtk3+ mainloop.
    posixr   )installReactor)r   platformgetTyper   r   twisted.internet.mainr   )reactorr   s     r   installr!   2   s[     !!W,,--%''444444N7Nr   r!   N)r   twisted.internetr   twisted.pythonr   r
   r   r   r   r!   __all__r   r   r   <module>r%      s    $ ' & & & & & " " " " " "	8 	8 	8 	8 	8)% 	8 	8 	8	@ 	@ 	@ 	@ 	@)5 	@ 	@ 	@   +r   