HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/internet/__pycache__/gtk3reactor.cpython-310.pyc
o

�b��@sRdZddlmZddlmZGdd�dej�ZGdd�dej�Zdd	�Z	d	gZ
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@�eZdZdZdd�ZdS)�Gtk3Reactorz/
    A reactor using the gtk3+ event loop.
    cC�tjj|dd�dS�z:
        Override init to set the C{useGtk} flag.
        T)�useGtkN)r�	GIReactor�__init__��self�r
�>/usr/lib/python3/dist-packages/twisted/internet/gtk3reactor.pyr
�zGtk3Reactor.__init__N��__name__�
__module__�__qualname__�__doc__r
r
r
r
rr�rc@r)�PortableGtk3Reactorz$
    Portable GTK+ 3.x reactor.
    cCrr)r�PortableGIReactorr
rr
r
rr
+rzPortableGtk3Reactor.__init__Nrr
r
r
rr&rrcCs4tj��dkrt�}nt�}ddlm}||�|S)zM
    Configure the Twisted mainloop to be run inside the gtk3+ mainloop.
    �posixr)�installReactor)r�platform�getTyperr�twisted.internet.mainr)�reactorrr
r
r�install2srN)r�twisted.internetr�twisted.pythonrr	rrrr�__all__r
r
r
r�<module>s