beetlebug▾
/

ttk::panedwindow insert

Puts a pane at a place in the row of panes.

PATHNAME insert POSITION PANE ?-weight WEIGHT?

Description

Puts PANE before the pane at POSITION, an index or end. A pane that is already in the paned window moves to that place.

Returns

An empty string.

Examples

% ttk::panedwindow .tpwin
> foreach n {a b c} {ttk::frame .tpwin.$n}
> .tpwin add .tpwin.a
> .tpwin add .tpwin.b
> .tpwin insert 0 .tpwin.c
> .tpwin panes
.tpwin.c .tpwin.a .tpwin.b

Errors

% ttk::panedwindow .tpwin2; ttk::frame .tpwin2.a; .tpwin2 insert 9 .tpwin2.a
Slave index 9 out of bounds
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also