pack configure
Packs the widgets with the options, or changes the options of packed widgets.
pack configure WINDOW ?WINDOW ...? ?OPTION VALUE ...?
Description
Each WINDOW goes into the list of its container, at the end or at the place of -after or -before. A widget that is already packed keeps its place, unless an option of the call moves it, and keeps each option that the call does not give. An option name can be a unique short form, such as -sid.
Returns
An empty string.
Examples
% frame .cf
> pack configure .cf -side left
> pack configure .cf -fill y
> lrange [pack info .cf] 6 7
-fill y
% frame .cf2
> pack .cf2 -sid right
> lindex [pack info .cf2] end
right
Errors
% pack configure
wrong # args: should be "pack option arg ?arg ...?"
-errorcode TCL WRONGARGS
% frame .cf3
> pack .cf3 -side
extra option "-side" (option with no value?)
-errorcode NONE
% frame .cf4
> pack .cf4 -bogus 1
bad option "-bogus": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx, -ipady, -padx, -pady, or -side
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1