/usr/lib/python3/dist-packages/twisted/internet/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/internet/__pycache__/gireactor.cpython-310.pyc (4098B)
o
b @ s d Z ddlZddlmZ ddlmZ ddlmZ ddl m
Z
dZej
eedddur1e G d d
d
ejZG dd dejZdddZdgZdS )a
This module provides support for Twisted to interact with the glib
mainloop via GObject Introspection.
In order to use this support, simply do the following::
from twisted.internet import gireactor
gireactor.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.
On Python 3, pygobject v3.4 or later is required.
N)GLib) _glibbase)ReactorAlreadyRunning)runtimeTthreads_initc @ s^ e Zd ZdZejjejjB ejjB Z ejj
ZejjZ
ee B Ze
e B ZdZdddZdd ZdS ) GIReactorz
GObject-introspection event loop reactor.
@ivar _gapplication: A C{Gio.Application} instance that was registered
with C{registerGApplication}.
NFc C 0 d }|du rddl m} tjj| t||d d S NTr )GtkuseGtk)
gi.repositoryr
r GlibReactorBase__init__r selfr _gtk r