tk/pack

The tk/pack command is used to communicate with the packer, a geometry manager that arranges the children of a parent by packing them in order around the edges of the parent. The tk/pack command can have any of several forms, depending on the option argument:

(tk/pack slave ?slave ...? ?options?)
If the first argument to pack is a window name (any value starting with ``.''), then the command is processed in the same way as tk/pack configure.

Expansion

If a master window is so large that there will be extra space left over after all of its slaves have been packed, then the extra space is distributed uniformly among all of the slaves for which the #:expand option is set. Extra horizontal space is distributed among the expandable slaves whose #:side is left or right, and extra vertical space is distributed among the expandable slaves whose #:side is top or bottom.


Corresponding Tcl/Tk command:

pack ...

© Author | Home | Sitemap