ttk::panedwindow pane
Gives or sets the options of a pane.
PATHNAME pane PANE
PATHNAME pane PANE -weight
PATHNAME pane PANE -weight WEIGHT
Description
With no option, gives the options of the pane and their values. With -weight, gives the weight. With a value, sets the weight. The only pane option is -weight.
Returns
A list of options and values, a value, or an empty string.
Examples
% ttk::panedwindow .tpwpa
> ttk::frame .tpwpa.a
> .tpwpa add .tpwpa.a
> .tpwpa pane 0 -weight 3
> .tpwpa pane 0
-weight 3
Errors
% ttk::panedwindow .tpwpa2; ttk::frame .tpwpa2.a; .tpwpa2 add .tpwpa2.a; .tpwpa2 pane 0 -weight x
expected integer but got "x"
-errorcode TCL VALUE NUMBER
% ttk::panedwindow .tpwpa3; ttk::frame .tpwpa3.a; .tpwpa3 add .tpwpa3.a; .tpwpa3 pane 0 -bogus 1
unknown option "-bogus"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1