spinbox set
Gives or sets the text of the spinbox.
PATHNAME set ?TEXT?
Description
With TEXT, replaces the text of the spinbox with TEXT and gives the new text. TEXT need not be in the range or in -values. With no TEXT, gives the text, as get does. It runs no -command.
Returns
The text of the spinbox.
Examples
% spinbox .st -to 10
> .st set 5
5
% spinbox .st2 -values {red green blue}
> .st2 set blue
> .st2 invoke buttondown
> .st2 get
green
Errors
% spinbox .st3; .st3 set a b
wrong # args: should be ".st3 set ?string?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1