beetlebug▾
/

spinbox cget

Gives the value of an option of the spinbox.

PATHNAME cget OPTION

Description

Gives the value of OPTION, with its full name or a short form such as -bg.

Returns

The value of the option.

Examples

% spinbox .cg -width 12
> .cg cget -width
12

Errors

% spinbox .cg2; .cg2 cget -foo
unknown option "-foo"
-errorcode TK LOOKUP OPTION -foo

% spinbox .cg3; .cg3 cget
wrong # args: should be ".cg3 cget option"
-errorcode TCL WRONGARGS

Facts

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

See also