These pack options specify how a widget is packed into its parent element.
pack_opts(anchor, expand, fill, ipadx, ipady, padx, pady, side, ...)
Specify where to position content within its parent. Defaults to 'center'. The alternative is to specify a string consisting only of the letters 'n', 's', 'e', 'w', to indicate the compass direction to anchor to. e.g. 'w', or 'sw' for 'west' (left) or 'southwest' respectively.
Should the content should be expanded to consume extra space in its parent container? Default: TRUE
If parent size is larger than its requested dimensions, this option may be used to stretch the content.
none
No stretching of widget
x
Stretch the content horizontally to fill the space
y
Stretch the content vertically to fill the space
both
Stretch the content horizontally and vertically to fill the space
How much horizontal/vertical internal padding to leave on the side of each element.
If you are familiar with HTML/CSSThis is analogous to
CSS margin
.
How much horizontal/vertical external padding to leave on the side of each element. This may be two values in order to specify different padding for left vs right, or top vs bottom.
If you are familiar with HTML/CSSThis is analogous to
CSS margin
.
Which side of the container the content will be packed against? Possible values: left, right, top, bottom
extra named args used by the packing spec.
See tcl/tk documentation for more information on the packing specification https://www.tcl.tk/man/tcl8.6/TkCmd/pack.html