Geometry Managers
The geometry manager is responsible for determining where the widgets get placed inside the window. This section discusses the four basic geometry managers: pack, grid, place, and form.
pack
The basic algorithm of the pack geometry manager is to “shove the widgets together as closely as possible in the indicated direction.” There are four pack regions: top, bottom, left, and right.
The geometry manager must not only support the initial placement of the widgets, but also must redo the layout if the size of the window changes. The pack algorithm lets you anchor a widget to a point within the packing region.
This is done through the –anchor option. Figure 13.3 shows the values for this option.
Figure 13.3. Anchors.
In addition, ...
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.