관리-도구
편집 파일: config_key.cpython-36.pyc
3 � f`4 � @ s~ d Z ddlT ddlmZ ddlmZ ddlZddlZG dd� de�Ze dkrzdd l mZ ed ddd � ddlm Z e e� dS )z6 Dialog for building Tkinter accelerator key bindings � )�*)� Scrollbar)� messageboxNc @ s� e Zd ZdZddd�dd�Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zd#dd�Zd$dd�Zdd � Zd!d"� ZdS )%� GetKeysDialogzKey Sequence ErrorF)�_htest�_utestc C sN t j| |� | j� | jdd� | jttd� | j|� | j|� | j� | j d| j � || _|| _|| _ d| _t| �| _| jjd� | j� g | _x,| jD ]"}t| �}|jd� | jj|� q�W d| _| j� | j� | j� | jd|j� |j� d | j� d |j� |�s(|j� d | j � d nd f � |�sJ| j!� | j"� d S )al action - string, the name of the virtual event these keys will be mapped to currentKeys - list, a list of all key sequence lists currently mapped to virtual events, for overlap checking _utest - bool, do not wait when running unittest _htest - bool, change box location when running htest � )�borderwidth)�height�widthZWM_DELETE_WINDOW� Fz+%d+%d� � N)#�Toplevel�__init__ZwithdrawZ configureZ resizableZFALSE�titleZ transientZgrab_setZprotocol�Cancel�parent�action�currentKeySequences�resultZ StringVar� keyString�set�SetModifiersForPlatform� modifier_vars� modifiers�append�advanced� CreateWidgets�LoadFinalKeyListZupdate_idletasksZgeometryZwinfo_rootxZwinfo_widthZwinfo_reqwidthZwinfo_rootyZwinfo_heightZwinfo_reqheightZ deiconifyZwait_window) �selfr r r r r r �modifier�variable� r# �7/opt/alt/python36/lib64/python3.6/idlelib/config_key.pyr sB *zGetKeysDialog.__init__c O s t j||� d S )N)r � showerror)r �args�kwargsr# r# r$ r% >