spinbox invoke
Steps the value as a press of an arrow does.
PATHNAME invoke ELEMENT
Description
buttonup steps the value up and buttondown steps it down, by the rules of -values, -increment, and -wrap. The step then runs -command. none does no step. A spinbox with -state disabled keeps its value.
Returns
An empty string.
Examples
% spinbox .iv -from 0 -to 10
> .iv invoke buttonup
> .iv invoke buttonup
> .iv get
2
# With no `-wrap`, the value stops at `-to`.
% spinbox .iv2 -to 3
> .iv2 set 3
> .iv2 invoke buttonup
> .iv2 get
3
Errors
% spinbox .iv3; .iv3 invoke bogus
bad element "bogus": must be none, buttondown, or buttonup
-errorcode NONE
% spinbox .iv4; .iv4 invoke
wrong # args: should be ".iv4 invoke elemName"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1