beetlebug▾
/

panedwindow paneconfigure

Gives or sets the options of the pane of WIDGET.

PATHNAME paneconfigure WIDGET ?OPTION? ?VALUE? ?OPTION VALUE ...?

Description

With no OPTION, gives a list with an entry for each option of the pane. With one OPTION, gives its entry: the option, two empty strings, the default, and the value. With pairs of options and values, sets each option of the pane.

The options of a pane are -after, -before, -height, -hide, -minsize, -padx, -pady, -sticky, -stretch, and -width. The description of the command lists what each one does.

Returns

An entry, a list of entries, or an empty string.

Examples

% panedwindow .pf
> label .pf.a -text A
> .pf add .pf.a
> .pf paneconfigure .pf.a -stretch always
> .pf panecget .pf.a -stretch
always

% panedwindow .pf2
> label .pf2.a -text A
> .pf2 add .pf2.a
> llength [.pf2 paneconfigure .pf2.a]
10

Errors

% panedwindow .pf3; label .pf3.a; .pf3 add .pf3.a; .pf3 paneconfigure .pf3.a -stretch bogus
bad stretch "bogus": must be always, first, last, middle, or never
-errorcode NONE

% panedwindow .pf4; label .pf4.a; .pf4 add .pf4.a; .pf4 paneconfigure .pf4.a -sticky q
bad stickyness value "q": must be a string containing zero or more of n, e, s, and w
-errorcode NONE

% panedwindow .pf5; label .pf5.a; .pf5 add .pf5.a; .pf5 paneconfigure .pf5.a -foo 1
unknown option "-foo"
-errorcode NONE

Facts

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

See also