a
    §ˆc  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )ÚInstance)ÚQTimer)Ú	BaseTimerc                       s>   e Zd ZdZeeddd�Z‡ fdd„Zdd„ Zd	d
„ Z	‡  Z
S )ÚPyfaceTimerz, Abstract base class for Qt toolkit timers. © F)Ú
allow_nonec                    s4   |  dtƒ ¡ tƒ jf i |¤Ž | jj | j¡ d S )NÚ_timer)Ú
setdefaultr   ÚsuperÚ__init__r   ÚtimeoutÚconnectZperform)ÚselfZtraits©Ú	__class__r   ú\/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/qt4/timer/timer.pyr      s    zPyfaceTimer.__init__c                 C   s   | j  t| jd ƒ¡ d S )Niè  )r   ÚstartÚintÚinterval©r   r   r   r   Ú_start   s    zPyfaceTimer._startc                 C   s   | j  ¡  d S )N)r   Ústopr   r   r   r   Ú_stop    s    zPyfaceTimer._stop)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   Ú__classcell__r   r   r   r   r      s
   r   N)Z
traits.apir   Zpyface.qt.QtCorer   Zpyface.timer.i_timerr   r   r   r   r   r   Ú<module>   s   