tk/pack configure

(tk/pack 'configure slave ?slave ...? ?options?)
The arguments consist of the names of one or more slave windows followed by pairs of arguments that specify how to manage the slaves.

The following options are supported:

#:after other
Other must the name of another window. Use its master as the master for the slaves, and insert the slaves just after other in the packing order.
#:anchor anchor
Anchor must be a valid anchor position such as n or sw; it specifies where to position each slave in its parcel. Defaults to center.
#:before other
Other must the name of another window. Use its master as the master for the slaves, and insert the slaves just before other in the packing order.
#:expand boolean
Specifies whether the slaves should be expanded to consume extra space in their master. Boolean may have any proper boolean value, such as 1 or no. Defaults to 0.
#:fill style
If a slave's parcel is larger than its requested dimensions, this option may be used to stretch the slave. Style must have one of the following values:
none
Give the slave its requested dimensions plus any internal padding requested with #:ipadx or #:ipady. This is the default.
x
Stretch the slave horizontally to fill the entire width of its parcel (except leave external padding as specified by #:padx).
y
Stretch the slave vertically to fill the entire height of its parcel (except leave external padding as specified by #:pady).
both
Stretch the slave both horizontally and vertically.
#:in other
Insert the slave(s) at the end of the packing order for the master window given by other.
#:ipadx amount
Amount specifies how much horizontal internal padding to leave on each side of the slave(s). Amount must be a valid screen distance, such as 2 or .5c. It defaults to 0.
#:ipady amount
Amount specifies how much vertical internal padding to leave on each side of the slave(s). Amount defaults to 0.
#:padx amount
Amount specifies how much horizontal external padding to leave on each side of the slave(s). Amount may be a list of two values to specify padding for left and right separately. Amount defaults to 0.
#:pady amount
Amount specifies how much vertical external padding to leave on each side of the slave(s). Amount may be a list of two values to specify padding for top and bottom separtely. Amount defaults to 0.
#:side side
Specifies which side of the master the slave(s) will be packed against. Must be left, right, top, or bottom. Defaults to top.

If no #:in, #:after or #:before option is specified then each of the slaves will be inserted at the end of the packing list for its parent unless it is already managed by the packer (in which case it will be left where it is).

If one of these options is specified then all the slaves will be inserted at the specified point.

If any of the slaves are already managed by the geometry manager then any unspecified options for them retain their previous values rather than receiving default values.


© Author | Home | Sitemap