Your IP : 18.224.51.49
3
��2a'+ � @ s� d dl Z d dlmZ G dd� de�ZG dd� d�ZG dd� de�ZG d d
� d
e�ZG dd� de�Zd
d� Ze dkr�d dl
mZ edddd� d dlm
Z
e
e� dS )� N)� Delegatorc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dZ
dd� Zd#Zdd� Z
d$dd�Zd%dd�Zdd� Zdd� Zd&dd�Zdd � Zd!d"� ZdS )'�
UndoDelegatori� c C s t j| � | j� d S )N)r �__init__�
reset_undo)�self� r �)/opt/alt/python36/lib64/python3.6/undo.pyr s
zUndoDelegator.__init__c C sj | j d k r(| jd� | jd� | jd� tj| |� |d k rf| jd| j� | jd| j� | jd| j� d S )Nz<<undo>>z<<redo>>z<<dump-undo-state>>)�delegateZunbindr �setdelegateZbind�
undo_event�
redo_event�
dump_event)r r r r r r
s
zUndoDelegator.setdelegatec C sv ddl m } || jd | j� � td| jdd� td| jdd� td| jdd� td| j� � || j| jd � � d S )
Nr )�pprintzpointer:� )�endzsaved:z
can_merge:zget_saved():�break)r �undolist�pointer�print�saved� can_merge� get_saved)r �eventr r r r r
( s zUndoDelegator.dump_eventc C s&