3
<Ad]‘  ã               @   s4   d dl mZmZ G dd„ deƒZdd„ Zdd„ ZdS )	é    )ÚCallbackTimerÚTimerc                   s$   e Zd ZdZdZ‡ fdd„Z‡  ZS )ÚDoLaterTimerz¢ Performs a callback once at a later time.

    This is not used by the `do_later` functions and is only provided for
    backwards compatibility of the API.
    é   c                s   t t| ƒj||f|ž|Ž d S )N)Úsuperr   Ú__init__)ÚselfÚintervalÚcallableÚargsZkw_args)Ú	__class__© úo/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/timer/do_later.pyr      s    zDoLaterTimer.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úrepeatr   Ú__classcell__r   r   )r   r   r      s   r   c             O   s   t jd| ||d�S )zÞ Does something 50 milliseconds from now.

    Parameters
    ----------
    callable : callable
        The callable to call in 50ms time.
    *args, **kwargs :
        Arguments to be passed through to the callable.
    gš™™™™™©?)r	   Úcallbackr   Úkwargs)r   Úsingle_shot)r
   r   r   r   r   r   Údo_later   s
    
r   c             O   s   t j| d |||d�S )a2   Does something after some specified time interval.

    Parameters
    ----------
    interval : float
        The time interval in milliseconds to wait before calling.
    callable : callable
        The callable to call.
    *args, **kwargs :
        Arguments to be passed through to the callable.
    g     @�@)r	   r   r   r   )r   r   )r	   r
   r   r   r   r   r   Údo_after1   s
    r   N)Zpyface.timer.timerr   r   r   r   r   r   r   r   r   Ú<module>   s   