beetlebug▾
/

panedwindow add

Adds each WIDGET as a pane.

PATHNAME add WIDGET ?WIDGET ...? ?OPTION VALUE ...?

Description

Puts each WIDGET into a new pane, at the end of the panes or at the place of -after or -before. The options are the options of a pane, as in paneconfigure. A WIDGET that is a pane already moves to the new place and gets the new options.

Returns

An empty string.

Examples

% panedwindow .ad
> label .ad.a -text A
> label .ad.b -text B
> .ad add .ad.b
> .ad add .ad.a -before .ad.b
> .ad panes
.ad.a .ad.b

Errors

% panedwindow .ad2; .ad2 add
wrong # args: should be ".ad2 add widget ?widget ...?"
-errorcode NONE

% panedwindow .ad3; .ad3 add .nope
bad window path name ".nope"
-errorcode NONE

Facts

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

See also