/opt/imh/python3.13/lib/python3.13/idlelib/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/idlelib/__pycache__/query.cpython-313.pyc (19563B)
e: f S r SSKrSSKrSSKrSSKrSSKJrJr SSK J
r
JrJrJ
r
JrJr SSKJrJrJrJrJr SSK Jr SSKJr SSKJr " S S
\
5 r " S S\5 r " S
S\5 r " S S\5 r " S S\5 r " S S\5 r \!S:X a SSK"J#r# \#" SSSS9 SSK$J%r% \%" \\\ 5 gg)a|
Dialogs that query users and verify the answer before accepting.
Query is the generic base class for a popup dialog.
The user must either enter a valid answer or close the dialog.
Entries are validated when
is entered or [Ok] is clicked.
Entries are ignored when [Cancel] or [X] are clicked.
The 'return value' is .result set to either a valid answer or None.
Subclass SectionName gets a name for a new config file section.
Configdialog uses it for new highlight theme and keybinding set names.
Subclass ModuleName gets a name for File => Open Module.
Subclass HelpSource gets menu item and path for additions to Help menu.
N)
executableplatform)Toplevel StringVar
BooleanVarWES)FrameButtonEntryLabelCheckbutton)
filedialog)Font)
_setup_dialogc t ^ \ rS rSrSrS0 SSS.S jrSS jrS rSS jrS
r SS jr
SS jrU 4S
jrSr
U =r$ )Query! zgBase class for getting verified answer from a user.
For this base class, accept any non-blank string.
Ftext0
used_names_htest_utestc : Xl X0l X@l XPl [ R
" X5 U R
5 U R U5 U R U5 U( d U R 5 [ U 5 U R S:X a U R SU R 5 U R SU R 5 U R SU R 5 U R SU R 5 U R SU R 5 U R! 5 U R# 5 U R% SUR' 5 UR) 5 S- U R+ 5 S- -
- UR- 5 U( d' UR/ 5 S- U R1 5 S- -
OS - 4- 5 U R3 S
S
S9 U( d; U R5 5 U R6 R9 5 U R; 5 gg)
a Create modal popup, return when destroyed.
Additional subclass init must be done before this unless
_utest=True is passed to suppress wait_window().
title - string, title of popup dialog
message - string, informational message to display
text0 - initial value for entry
used_names - names already in use
_htest - bool, change box location when running htest
_utest - bool, leave window hidden and not modal
aquazzWM_DELETE_WINDOWzz
z+%d+%d F)heightwidthN)parentmessager r r __init__withdrawtitle transientgrab_setr _windowingsystembindcancelprotocolokcreate_widgetsupdate_idletasksgeometrywinfo_rootxwinfo_widthwinfo_reqwidthwinfo_rootywinfo_heightwinfo_reqheight resizable deiconifyentry focus_setwait_window)selfr# r' r$ r r r r s 3/opt/imh/python3.13/lib/python3.13/idlelib/query.pyr% Query.__init__&