Hacked By AnonymousFox
3
� f�� � @ sJ d Z ddlmZmZmZmZmZmZmZm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z ddl!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, ddl-j.Z/ddl0j1Z2ddlm3Z3 ddl4m5Z5m6Z6 ddl7m8Z8 ddl9m:Z: dd l;m<Z< dd
l=m>Z>m?Z? ddl@mAZA ddlBmCZC dd
lDmEZE ddlFmGZG ddlHmIZI ddlJmKZK e6� ZLeCeEeGeIeKfZMG dd� de�ZNdaOG dd� de%�ZPG dd� de%�ZQG dd� de%�ZRG dd� de%�ZSG dd� d�ZTeT� ZUdZVdd d!d"d#�ZWd$d%� ZXG d&d'� d'e%�ZYeZd(k�rFdd)l[m\Z\ e\d*d+d,d-� dd.l]m^Z^ e^eN� dS )/a� IDLE Configuration Dialog: support user customization of IDLE by GUI
Customize font faces, sizes, and colorization attributes. Set indentation
defaults. Customize keybindings. Colorization and keybindings can be
saved as user defined sets. Select startup options including shell/editor
and default window size. Define additional help sources.
Note that tab width in IDLE is currently fixed at eight due to Tk issues.
Refer to comments in EditorWindow autoindent code for details.
� )�Toplevel�Listbox�Text�Scale�Canvas� StringVar�
BooleanVar�IntVar�TRUE�FALSE�TOP�BOTTOM�RIGHT�LEFT�SOLID�GROOVE�NONE�BOTH�X�Y�W�E�EW�NS�NSEW�NW�
HORIZONTAL�VERTICAL�ANCHOR�ACTIVE�END)�Button�Checkbutton�Entry�Frame�Label�
LabelFrame�
OptionMenu�Notebook�Radiobutton� Scrollbar�StyleN)�
messagebox)�idleConf�
ConfigChanges)�
GetKeysDialog)�
DynOptionMenu)�macosx)�SectionName�
HelpSource)� view_text)�AutoComplete)�CodeContext)�
ParenMatch)�FormatParagraph)�Squeezerc s� e Zd ZdZd%ddd�dd�Zdd� Zd d
� Zdd� Zd
d� Zdd� Z � fdd�Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Z� ZS )&�ConfigDialogzConfig dialog for IDLE.
� F)�_htest�_utestc C s� t j| |� || _|ri |_|s(| j� | jdd� | j|p>d� |j� d }|j� |s\dnd }| j d|� d|� �� | j
� | jttd� | j
|� | jd | j� | jjj� tj� |s�| j� | j� | j� d
S )a� Show the tabbed dialog for user configuration.
Args:
parent - parent of this dialog
title - string which is the title of this popup dialog
_htest - bool, change box location when running htest
_utest - bool, don't wait_window when running unittest
Note: Focus set on font page fontlist.
Methods:
create_widgets
cancel: Bound to DELETE_WINDOW protocol.
� )�borderwidthzIDLE Preferences� � � �+)�height�widthZWM_DELETE_WINDOWN)r �__init__�parent�
instance_dictZwithdraw� configure�titleZwinfo_rootxZwinfo_rootyZgeometry�create_widgetsZ resizabler Z transientZprotocol�cancel�fontpage�fontlistZ focus_set�tracers�attachZgrab_setZwm_deiconifyZwait_window)�selfrG rJ r<