ó
zHc           @   sE   d  Z  d d l m Z d e j f d     YZ d   Z d g Z d S(   s«  
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.

When installing the reactor, you can choose whether to use the glib
event loop or the GTK+ event loop which is based on it but adds GUI
integration.

Maintainer: Itamar Shtull-Trauring
i’’’’(   t   gtk2reactort   Glib2Reactorc           B   s   e  Z d  Z d   Z RS(   s.   
    The reactor using the glib mainloop.
    c         C   s   t  j j |  d t d S(   s:   
        Override init to set the C{useGtk} flag.
        t   useGtkN(   R    t   Gtk2Reactort   __init__t   False(   t   self(    (    sA   /usr/lib/python2.7/dist-packages/twisted/internet/glib2reactor.pyR       s    (   t   __name__t
   __module__t   __doc__R   (    (    (    sA   /usr/lib/python2.7/dist-packages/twisted/internet/glib2reactor.pyR      s   c          C   s'   t    }  d d l m } | |   d S(   sL   
    Configure the twisted mainloop to be run inside the glib mainloop.
    i’’’’(   t   installReactorN(   R   t   twisted.internet.mainR
   (   t   reactorR
   (    (    sA   /usr/lib/python2.7/dist-packages/twisted/internet/glib2reactor.pyt   install(   s    	R   N(   R	   t   twisted.internetR    R   R   R   t   __all__(    (    (    sA   /usr/lib/python2.7/dist-packages/twisted/internet/glib2reactor.pyt   <module>   s   	