ok
Direktori : /proc/thread-self/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/undo.cpython-37.pyc |
B � f&+ � @ 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� ZdZdd� Z d#dd�Zd$dd�Zdd� Zdd� Zd%dd�Zdd � Zd!d"� ZdS )&� UndoDelegatori� c C s t �| � | �� d S )N)r �__init__� reset_undo)�self� r �1/opt/alt/python37/lib64/python3.7/idlelib/undo.pyr s zUndoDelegator.__init__c C sj | j d k r(| �d� | �d� | �d� t�| |� |d k rf| �d| j� | �d| j� | �d| 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| 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&