next up previous contents index
Next: The grid geometry manager Up: Tutorial Previous: Generic functions   Contents   Index

The pack geometry manager

The pack geometry manager treats widges as boxes to be piled into one direction. This direction can be either horizontally or vertically. Complex layouts can be created by using frames to pack piles together.

The behaviour of the pack geometry manager is controlled by the keyword parameters to the pack function. The keywords and their effects are:

:side The direction in which the widgets are packed. Possible values are :left , :right, :top (default), :bottom.
:expand If t, then the packed widget may take more place than
:fill Allows the packed widget to grow in the given direction, if it gets expanded. Possible values are :none (default), :x, :y or :both needed.
:after widget Pack it after the widget.
:before widget Pack it before the widget
:padx n Leave n pixel space in x direction around the widget.
:pady n Leave n pixel space in y direction around the widget.
:ipadx n Grow the widget n pixel in x direction.
:ipady n Grow the widget n pixel in y direction.
:anchor direction Specify which point of the widget to use for anchoring it, for example :ne for the upper right corner.


next up previous contents index
Next: The grid geometry manager Up: Tutorial Previous: Generic functions   Contents   Index
Peter Herth 2006-01-29