3
6ßL]Š  ã               @   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 jƒ  dS )z Perform the action. N)Úundo_managerZundo)ÚselfÚevent© r   úF/tmp/pip-install-5sebvq2j/apptools/apptools/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   