HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3/dist-packages/twisted/internet/__pycache__/gtk3reactor.cpython-38.pyc
U


W[��@s�dZddlmZmZddlZddlmZddlmZej	�
�dkr`ej	��s`ej�
d�s`ed��Gd	d
�d
ej�ZGdd�dej�Zd
d�ZdgZdS)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.
�)�division�absolute_importN)�	gireactor)�runtime�posixZDISPLAYz=Gtk3 requires X11, and no DISPLAY environment variable is setc@seZdZdZdd�ZdS)�Gtk3Reactorz/
    A reactor using the gtk3+ event loop.
    cCstjj|dd�dS�z:
        Override init to set the C{useGtk} flag.
        T)ZuseGtkN)r�	GIReactor�__init__��self�r
�>/usr/lib/python3/dist-packages/twisted/internet/gtk3reactor.pyr
.szGtk3Reactor.__init__N��__name__�
__module__�__qualname__�__doc__r
r
r
r
rr)src@seZdZdZdd�ZdS)�PortableGtk3Reactorz$
    Portable GTK+ 3.x reactor.
    cCstjj|dd�dSr)r�PortableGIReactorr
rr
r
rr
:szPortableGtk3Reactor.__init__Nrr
r
r
rr6srcCs4tj��dkrt�}nt�}ddlm}||�|S)zM
    Configure the Twisted mainloop to be run inside the gtk3+ mainloop.
    rr)�installReactor)r�platform�getTyperrZtwisted.internet.mainr)Zreactorrr
r
r�installBsr)rZ
__future__rr�osZtwisted.internetrZtwisted.pythonrrrZisMacOSX�environ�get�ImportErrorr	rrrr�__all__r
r
r
r�<module>s �
��