pack info
Gives the options of a packed widget.
pack info WINDOW
Description
Gives a list of option and value pairs: -in, -anchor, -expand, -fill, -ipadx, -ipady, -padx, -pady, and -side, in that order. -padx and -pady are one value when the two sides are equal, and a list of two values when they differ.
Returns
A list of options and values.
Examples
% frame .if
> frame .if.a
> pack .if.a -side left -fill y -padx {2 4}
> pack info .if.a
-in .if -anchor center -expand 0 -fill y -ipadx 0 -ipady 0 -padx {2 4} -pady 0 -side left
Errors
% frame .if2
> pack info .if2
window ".if2" isn't packed
-errorcode NONE
% pack info .if3 x
wrong # args: should be "pack info window"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1