ó
[łXMc           @   s=   d  Z  d d l Z d   Z d d d i  d  Z d g Z d S(   s   
This module integrates PyUI with twisted.internet's mainloop.

Maintainer: Jp Calderone

See doc/examples/pyuidemo.py for example usage.
i˙˙˙˙Nc         C   sM   t  j   t  j   d k r3 t  j   |  j   n |  j | t |  |  d  S(   Ni    (   t   pyuit   drawt   updatet   quitt   stopt	   callLatert
   _guiUpdate(   t   reactort   delay(    (    s@   /usr/lib/python2.7/dist-packages/twisted/internet/pyuisupport.pyR      s
    

i
   c         C   sF   t  j | |   } | d k r1 d d l m } n  t | |  d  | S(   s   
    Schedule PyUI's display to be updated approximately every C{ms}
    milliseconds, and initialize PyUI with the specified arguments.
    i˙˙˙˙(   R   g     @@N(   R    t   initt   Nonet   twisted.internetR   R   (   t   msR   t   argst   kwt   d(    (    s@   /usr/lib/python2.7/dist-packages/twisted/internet/pyuisupport.pyt   install   s
    R   (    (   t   __doc__R    R   R
   R   t   __all__(    (    (    s@   /usr/lib/python2.7/dist-packages/twisted/internet/pyuisupport.pyt   <module>   s   		