a
    §ˆc0  ã                   @   s    d dl mZ G dd„ deƒZdS )é   )ÚAbstractCommandStackActionc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )Ú
RedoActionzRAn action that redos the last command undone of the active command
    stack.
    c                 C   s   | j  ¡  dS )z Perform the action. N)Úundo_managerZredo)ÚselfÚevent© r   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/undo/action/redo_action.pyÚperform&   s    zRedoAction.performc                 C   s0   | j j}|rd| }d| _n
d}d| _|| _dS )z! Update the state of the action. z&Redo Tz&RedoFN)r   Z	redo_nameZenabledÚname)r   r
   r   r   r   Ú_update_action/   s    zRedoAction._update_actionN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r      s   	r   N)Zabstract_command_stack_actionr   r   r   r   r   r   Ú<module>   s   