|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/idlelib/__pycache__/ |
U
@��gg� � @ s` d Z ddlZddlmZmZmZmZmZmZm 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, ddlm-Z- ddl.m/Z0 ddlm1Z1 ddl2m3Z3m4Z4 ddl5m6Z6 dd l7m8Z8 dd
l9m:Z: ddl;m<Z<m=Z= ddl>m?Z? dd
l@mAZA ddlBmCZC ddlDmEZE ddlFmGZG ddlHmIZI ddl>mJZJ e4� ZKeAeCeEeGeIfZLG dd� de�ZMdaNG dd� de"�ZOG dd� de"�ZPG dd� de"�ZQG dd� de"�ZRG dd� d�ZSeS� ZTd ZUd!d"d#d$d%d&�ZVd'd(� ZWG d)d*� d*e"�ZXeYd+k�r\dd,lZm[Z[ e[d-d.d/d0� dd1l\m]Z] e]eM� dS )2a� 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.
� N)�Toplevel�Listbox�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)�Frame�
LabelFrame�Button�Checkbutton�Entry�Label�
OptionMenu�Notebook�Radiobutton� Scrollbar�Style)�colorchooser)�
messagebox)�idleConf�
ConfigChanges)�
GetKeysDialog)�
DynOptionMenu)�macosx)�SectionName�
HelpSource)� view_text)�AutoComplete)�CodeContext)�
ParenMatch)�FormatParagraph)�Squeezer)�ScrollableTextFramec 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 �| |� || _|ri |_|s(| �� | �|p2d� |�� d }|�� |sPdnd }| �d|� d|� �� | � � | j
ttd� | �|� | �
d| j� | jj�� t�� |s�| �� | �� | �� dS ) 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.
zIDLE Preferences� � � �+��height�widthZWM_DELETE_WINDOWN)r �__init__�parent�
instance_dictZwithdraw�titleZwinfo_rootxZwinfo_rootyZgeometry�create_widgetsZ resizabler
Z transient�protocol�cancel�fontpage�fontlistZ focus_set�tracers�attachZgrab_setZwm_deiconifyZwait_window)�selfrG rI r= r>