π FileMgr
π
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
internet
/
__pycache__
βοΈ /usr/lib/python3/dist-packages/twisted/internet/__pycache__/glib2reactor.cpython-312.pyc
β Tutup
οΏ½ ojοΏ½ οΏ½ οΏ½ οΏ½ d Z ddlmZ ddlmZ ed eddddοΏ½ οΏ½ dd lmZ G d οΏ½ dej οΏ½ ZdοΏ½ Z d gZ y)aοΏ½ This module provides support for Twisted to interact with the glib mainloop. This is like gtk2, but slightly faster and does not require a working $DISPLAY. However, you cannot run GUIs under this reactor: for that you must use the gtk2reactor instead. In order to use this support, simply do the following:: from twisted.internet import glib2reactor glib2reactor.install() Then use twisted.internet APIs as usual. The other methods here are not intended to be called directly. οΏ½ )οΏ½VersionοΏ½ )οΏ½deprecatedGnomeReactorοΏ½glib2reactorοΏ½TwistedοΏ½ οΏ½ )οΏ½gtk2reactorc οΏ½ οΏ½ e Zd ZdZdοΏ½ Zy)οΏ½Glib2Reactorz. The reactor using the glib mainloop. c οΏ½F οΏ½ t j j | dοΏ½οΏ½ y)z: Override init to set the C{useGtk} flag. F)οΏ½useGtkN)r οΏ½Gtk2ReactorοΏ½__init__)οΏ½selfs οΏ½?/usr/lib/python3/dist-packages/twisted/internet/glib2reactor.pyr zGlib2Reactor.__init__! s οΏ½ οΏ½ οΏ½οΏ½οΏ½(οΏ½(οΏ½οΏ½eοΏ½(οΏ½<οΏ½ N)οΏ½__name__οΏ½ __module__οΏ½__qualname__οΏ½__doc__r οΏ½ r r r r s οΏ½ οΏ½οΏ½=r r c οΏ½4 οΏ½ t οΏ½ } ddlm} || οΏ½ y)zL Configure the twisted mainloop to be run inside the glib mainloop. r )οΏ½installReactorN)r οΏ½twisted.internet.mainr )οΏ½reactorr s r οΏ½installr ( s οΏ½ οΏ½ οΏ½nοΏ½GοΏ½4οΏ½οΏ½7οΏ½r r N)r οΏ½incrementalr οΏ½ _deprecater οΏ½twisted.internetr r r r οΏ½__all__r r r οΏ½<module>r"