Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyc

ó
±ZOc@sédZddlZdejkr0edƒ‚nddlmZejƒddlmZddl	m
Z
dejd<dejd<dejd	<dejd
<dejfd„ƒYZ
d
ejfd„ƒYZed„ZdgZdS(sO
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()

Then use twisted.internet APIs as usual.  The other methods here are not
intended to be called directly.
iÿÿÿÿNtgobjects|Introspected and static glib/gtk bindings must not be mixed; can't import gireactor since pygtk2 module is already imported.(tGLib(t	_glibbase(truntimetglibtgiotgtkt	GIReactorcBsfeZdZejjejjBejjBZejj	Z
ejjZe
eBZ
eeBZed„ZRS(s3
    GObject-introspection event loop reactor.
    cCsEd}|tkr%ddlm}ntjj|t|d|ƒdS(Niÿÿÿÿ(tGtktuseGtk(tNonetTruet
gi.repositoryRRtGlibReactorBaset__init__R(tselfR	t_gtk((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyR6s(t__name__t
__module__t__doc__RtIOConditiontHUPtERRtNVALt_POLL_DISCONNECTEDtINt_POLL_INtOUTt	_POLL_OUTtINFLAGStOUTFLAGStFalseR(((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyR's


tPortableGIReactorcBseZdZed„ZRS(s<
    Portable GObject Introspection event loop reactor.
    cCsEd}|tkr%ddlm}ntjj|t|d|ƒdS(Niÿÿÿÿ(RR	(R
RRRRtPortableGlibReactorBaseRR(RR	R((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyRCs
(RRRRR(((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyR ?scCsTtjjƒdkr'td|ƒ}ntd|ƒ}ddlm}||ƒ|S(sÍ
    Configure the twisted mainloop to be run inside the glib mainloop.

    @param useGtk: should GTK+ rather than glib event loop be
        used (this will be slightly slower but does support GUI).
    tposixR	iÿÿÿÿ(tinstallReactor(RtplatformtgetTypeRR ttwisted.internet.mainR#(R	treactorR#((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pytinstallLs
R((RtsystmodulestImportErrorRRtthreads_initttwisted.internetRttwisted.pythonRR
R
RR!R RR(t__all__(((s>/usr/lib/python2.7/dist-packages/twisted/internet/gireactor.pyt<module>s