3
,sY1                 @   s0   d Z ddlZdd Zddf i fddZdgZdS )z
This module integrates PyUI with twisted.internet's mainloop.

Maintainer: Jp Calderone

See doc/examples/pyuidemo.py for example usage.
    Nc             C   s:   t j  t j dkr&t j  | j  n| j|t| | d S )Nr   )pyuiZdrawupdatequitstopZ	callLater
_guiUpdate)reactorZdelay r   >/usr/lib/python3/dist-packages/twisted/internet/pyuisupport.pyr      s
    
r   
   c             C   s2   t j||}|dkr ddlm} t|| d  |S )z
    Schedule PyUI's display to be updated approximately every C{ms}
    milliseconds, and initialize PyUI with the specified arguments.
    Nr   )r   g     @@)r   ZinitZtwisted.internetr   r   )Zmsr   argskwdr   r   r	   install   s
    r   )__doc__r   r   r   __all__r   r   r   r	   <module>   s   	