ok
Direktori : /opt/alt/python36/lib64/python3.6/idlelib/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/undo.cpython-36.opt-1.pyc |
3 *j�a'+ � @ 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 �1/opt/alt/python36/lib64/python3.6/idlelib/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&