place configure
Gives or sets the options of a placed widget.
place configure WINDOW
place configure WINDOW OPTION
place configure WINDOW OPTION VALUE ?OPTION VALUE ...?
Description
With pairs of options and values, places WINDOW or changes its options, and keeps each option that the call does not give. With no option, gives a list with an entry for each option: the option, two empty elements, the default, and the value. With one OPTION, gives its entry. A widget that is not placed gives an empty string. An option name can be a unique short form, such as -wi.
Returns
An entry, a list of entries, or an empty string.
Examples
% frame .cf
> frame .cf.a
> place configure .cf.a -x 10
> place configure .cf.a -x
-x {} {} 0 10
% frame .cf2
> frame .cf2.a
> place .cf2.a -wi 3
> dict get [place info .cf2.a] -width
3
Errors
% frame .cf3
> place .cf3 -x
value for "-x" missing
-errorcode NONE
% frame .cf4
> place .cf4 -bogus 1
unknown option "-bogus"
-errorcode NONE
% place .cf5
wrong # args: should be "place option|pathName args"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1