a
    §ˆc"  ã                   @   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 )Ú
UndoActionzD An action that undos the last command of the active command stack. c                 C   s   | j  ¡  dS )z Perform the action. N)Úundo_managerZundo)ÚselfÚevent© r   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/undo/action/undo_action.pyÚperform$   s    zUndoAction.performc                 C   s0   | j j}|rd| }d| _n
d}d| _|| _dS )z! Update the state of the action. z&Undo Tz&UndoFN)r   Z	undo_nameZenabledÚname)r   r
   r   r   r   Ú_update_action-   s    zUndoAction._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   