Your IP : 3.144.91.130
3
� fg� � @ sn d Z ddlmZ ddlmZ ed� ddlZddlmZ ddlmZ ddl m
Z
mZmZm
Z
mZmZ dd lmZ dd
lmZmZmZ ejZejd�ejd�ejd�ejd�d�Zdadaed
Zed Zed Zed Zdd� Zdd� Z G dd� dej!�Z"G dd� dej!�Z#G dd� dej!�Z$G dd� dej!�Z%G dd� dej!�Z&G dd � d ej!�Z'e(d!k�rjej)d"d#� dS )$zfTest configdialog, coverage 94%.
Half the class creates dialog, half works with user customizations.
� )�configdialog)�requiresZguiN)�mock)�Func)�Tk� StringVar�IntVar�
BooleanVar�DISABLED�NORMAL)�config)�idleConf�changes�tracers� )�main� highlight�keys�
extensionsr r r r c C s t t_t� atjtddd�ad S )NZTestT)Z_utest)�testcfgr
�userCfgr �rootr ZConfigDialog�dialog� r r �H/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_configdialog.py�setUpModule! s r c C s: t t_tj� tj� tj� tj� tj � d aa
d S )N)�usercfgr
r r �detach�clearr r �update_idletasksZdestroyr r r r r �tearDownModule( s r c @ sh e Zd ZdZedd� �Zedd� �Zdd� Zdd � Zd
d� Z dd
� Z
dd� Zdd� Zdd� Z
dd� ZdS )�FontPageTestz�Test that font widgets enable users to make font changes.
Test that widget actions set vars, that var changes add three
options to changes and call set_samples, and that set_samples
changes the font of both sample boxes.
c C s, t j }| _t jj|� t� |_|j� d S )N)r �fontpage�page�note�selectr �set_samples�update)�clsr# r r r �
setUpClass: s zFontPageTest.setUpClassc C s
| j `d S )N)r# r&