place info
Gives the options of a placed widget.
place info WINDOW
Description
Gives a list of option and value pairs: -in, -x, -relx, -y, -rely, -width, -relwidth, -height, -relheight, -anchor, and -bordermode, in that order. A widget that is not placed gives an empty string.
Returns
A list of options and values, or an empty string.
Examples
% frame .if
> frame .if.a
> place .if.a -x 10 -y 5 -relx 0.25
> place info .if.a
-in .if -x 10 -relx 0.25 -y 5 -rely 0 -width {} -relwidth {} -height {} -relheight {} -anchor nw -bordermode inside
% frame .if2
> place info .if2
Errors
% place info .if2 x
wrong # args: should be "place info pathName"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1