Geometry#

The geometry managers — how a widget gets a size and position inside its parent. Each page is a method spec (signatures, parameters, return types); Arranging widgets teaches when to reach for each.

A widget is only drawn once one of these places it, and a single container should use one manager for its direct children (pack or grid, not both). Stacking order then decides which widget wins where two overlap.

Pack

Stack a widget against a side of its parent.

Pack
Grid

Place widgets in rows and columns, and shape the container.

Grid
Place

Position a widget by absolute or relative coordinates.

Place
Stacking order

Raise and lower overlapping widgets — lift, lower.

Stacking order