beetlebug▾
/

spinbox configure

Gives or sets the options of the spinbox.

PATHNAME configure
PATHNAME configure OPTION
PATHNAME configure OPTION VALUE ?OPTION VALUE ...?

Description

With no argument, gives a list with an spinbox for each option. With one OPTION, gives its spinbox: the option, its database name, its database class, the default, and the value. A short form such as -bd has the spinbox {-bd -borderwidth}.

With pairs of options and values, sets each option in order and gives an empty string. A bad value stops at that option with an error.

Returns

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

Examples

% spinbox .cf -width 12
> .cf configure -width
-width width Width 20 12

% spinbox .cf2
> llength [.cf2 configure]
51

Errors

% spinbox .cf3; .cf3 configure -width 5 -font
value for "-font" missing
-errorcode TK VALUE_MISSING

% spinbox .cf4; .cf4 configure -foo 1
unknown option "-foo"
-errorcode TK LOOKUP OPTION -foo

Facts

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

See also