Page 16 - Phyton_GUIprogrammingwithTkinter
P. 16
P a ge | 7
Picture from
http://gatherworkshops.github.io/programming/courses/tkinter/layouts.html
The description of layout management for every types is based on the Table
2.1 below.
Table 2.1: Layout Management Description
Geometry managers Description
method
pack () Organizes widgets in horizontal and vertical boxes that
are limited to left, right, top, bottom positions. Each box
is offset and relative to each other.
grid () Locates widgets in a two-dimensional grid using row
and column absolute coordinates.
place () Places widgets in a two-dimensional grid using x and y
absolute coordinates.
Important:
pack (), place (), and grid () should not be combined in the same master window.
Instead choose one and stick with it.