0% found this document useful (0 votes)
18 views1 page

Tkinterpy

The document provides an overview of the Tkinter library, which is a Python interface to the Tcl/Tk GUI toolkit. It discusses various options and methods for configuring widgets, including the use of the config() method and geometry management. Additionally, it highlights the distinction between standard and widget-specific options, as well as common shorthand for option names.

Uploaded by

keqingtake1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Tkinterpy

The document provides an overview of the Tkinter library, which is a Python interface to the Tcl/Tk GUI toolkit. It discusses various options and methods for configuring widgets, including the use of the config() method and geometry management. Additionally, it highlights the distinction between standard and widget-specific options, as well as common shorthand for option names.

Uploaded by

keqingtake1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

•index

•modules |
•next |
•previous |

•Python »
•EnglishSpanish | españolFrench | françaisItalian | italianoJapanese | 日本語 Korean | 한국어 Polish | polskiBrazilian Portuguese | Português brasileiroTurkish | TürkçeSimplified Chinese | 简体中文 Traditio
dev (3.14)3.13.23.123.113.103.93.83.73.63.53.43.33.23.13.02.72.6

Tk
•3.13.2 Documentation »
•The Python Standard Library »
Tkinter Event Field Tk Tkinter Event Field
•Graphical User Interfaces with Tk »
%f
•tkinter — Python interface to Tcl/Tk focus %A char

| %h height %E send_event
•Theme Auto Light Dark
|
%k keycode %K keysym
— that
tkinter%sNote
Index
Python interface
the man pages list “STANDARD
state toOPTIONS”
Tcl/Tk
Meaning
and “WIDGET SPECIFIC OPTIONS” for each widget. The former is a list of options that are com
%N Example keysym_num
Source code: Lib/tkinter/__init__.py No distinction between standard and widget-specific options is made in this document. Some options don’t apply t
%tare listed in that widget’s man page,
a given widget
0 timeor can option %Tcalling the config() method
be queried at runtime by
name type
'relief'without arguments, or by calling the keys() metho
Some options, like bg are synonyms for common options with long names ( bg is shorthand for “background”). Passing the config() method the name of a
%w
1 width %W lookup
option name for database 'relief' widget
%x
2 x %X lookup
option class for database 'Relief' x_root
%y
3 y default value %Y 'raised' y_root
4 current value 'groove'
widgets within their container - their mutual master. In contrast to the more cumbersome placer (which is used less commonly, and we do not cover here), the p
rol where slave widgets appear inside the master into which they are packed. You can pack widgets into frames, and frames into other frames, in order to achiev
do not appear until they have had their geometry specified with a geometry manager. It’s a common early mistake to leave out the geometry specification, and
The pack() method can be called with keyword-option/value

You might also like