ttk::panedwindow add
Adds a pane at the end, or sets the options of a pane.
PATHNAME add PANE ?-weight WEIGHT?
Description
PANE is a widget, a child of the paned window or of its parent. The paned window puts it after the last pane, with a sash before it. For a pane that is already in the paned window, add sets its options. -weight is the share of the pane in a change of the size.
Returns
An empty string.
Examples
% ttk::panedwindow .tpwad
> ttk::frame .tpwad.a
> .tpwad add .tpwad.a -weight 2
> .tpwad pane .tpwad.a -weight
2
Errors
% ttk::panedwindow .tpwad2; .tpwad2 add .nosuch
bad window path name ".nosuch"
-errorcode NONE
% ttk::panedwindow .tpwad3; .tpwad3 add
wrong # args: should be ".tpwad3 add window"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1