Name
pack
Synopsis
w.pack(**pack_options)
Delegates geometry management to the
packer. pack_options may include:
-
expand When true,
wexpands to fill any space not otherwise used inw’s parent.-
fill Determines whether
wfills any extra space allocated to it by the packer, or keeps its own minimal dimensions:NONE(default),X(fill only horizontally),Y(fill only vertically), orBOTH(fill both horizontally and vertically).-
side Determines which side of the parent
wpacks against:TOP(default),BOTTOM,LEFT, orRIGHT. To avoid confusion, don’t mix different values for optionside=in widgets that are children of the same container. When more than one child requests the same side (for exampleTOP), the rule is first come, first served: the first child packs at the top, the second child packs second from the top, and so on.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access