관리-도구
편집 파일: test_config_key.cpython-36.opt-2.pyc
3 ��2at � @ sn d dl mZ d dlmZ d dlZd dlmZ d dlmZ d dl m Z G dd� dej�Ze d krjejd d� dS )� )� config_key)�requiresN)�Tk)�Func)� Mbox_funcc @ s� e Zd ZG dd� dej�Zedd� �Zedd� �Zdd� Z d d � Z dd� Zd d� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� ZdS )�ValidationTestc @ s e Zd Zdd� Ze� Ze� ZdS )zValidationTest.Validatorc O s, t jj| f|�|� G dd� d�}|| _d S )Nc @ s e Zd Ze� ZdS )z8ValidationTest.Validator.__init__.<locals>.listKeysFinalN)�__name__� __module__�__qualname__r �get� r r �4/opt/alt/python36/lib64/python3.6/test_config_key.py� listKeysFinal s r )r � GetKeysDialog�__init__r )�self�args�kwargsr r r r r s z!ValidationTest.Validator.__init__N)r r r r r �GetModifiersr � showerrorr r r r � Validator s r c C sD t d� t� | _| jj� dgddgg}| j| jdd|dd�| _d S ) NZguiz <Key-F12>z<Control-Key-x>z<Control-Key-X>ZTitlez<<Test>>T)Z_utest)r r �rootZwithdrawr �dialog)�clsZkeylistr r r � setUpClass s zValidationTest.setUpClassc C s* | j j� | jj� | jj� | ` | `d S )N)r ZCancelr Zupdate_idletasksZdestroy)r r r r � tearDownClass s zValidationTest.tearDownClassc C s d| j j_d S )N� )r r �message)r r r r �setUp'