Current File : //usr/local/apps/python3/lib/python3.11/idlelib/__pycache__/parenmatch.cpython-311.opt-2.pyc |
�
�Ke$ � � � d dl mZ d dlmZ dddd�ZdZ G d� d � � Ze� � � ed
k rd dl m
Z
e
dd
�� � dS dS )� )�HyperParser)�idleConf�(�[�{��)�]�}�d c � � e Zd Z dZdZd� Zed� � � Zd� Zd� Z d� Z
d� Zd � Zdd�Z
d� Zd
� Zd� Zd� Zeeeed�Zd� Zd� Zd
S )�
ParenMatchz<<parenmatch-check-restore>>)z
<KeyPress>z
<ButtonPress>z<Key-Return>z<Key-BackSpace>c � � || _ |j | _ |j � | j | j � � d| _ d| _ d S )Nr )�editwin�text�bind�RESTORE_VIRTUAL_EVENT_NAME�
restore_event�counter�is_restore_active)�selfr s �</usr/local/apps/python3/lib/python3.11/idlelib/parenmatch.py�__init__zParenMatch.__init__( sN � �����L�� � ����$�9��,� .� .� .����!"����� c � � t j dddd�� � | _ t j ddddd� � � | _ t j ddd
dd� � � | _ t j t j � � d
� � | _ d S )N�
extensionsr �style�opener)�defaultzflash-delay�inti� )�typer �bell�bool� �hilite)r � GetOption�STYLE�FLASH_DELAY�BELL�GetHighlight�CurrentTheme�
HILITE_CONFIG)�clss r �reloadzParenMatch.reload3 s� � ��&���g�x�A� A� A�� �"�,��\�-�e�C�Q� Q� Q����%��\�&�v�q�J� J� J���$�1�(�2G�2I�2I�2:�<� <����r c �| � | j s3| j D ]"}| j � | j |� � �#d| _ d S d S )NT)r �RESTORE_SEQUENCESr � event_addr �r �seqs r �activate_restorezParenMatch.activate_restore>