spinbox insert
Inserts TEXT before the character at INDEX.
PATHNAME insert INDEX TEXT
Description
Puts TEXT into the spinbox before INDEX. With -validate, the validation runs first and can reject the change. An spinbox with -state disabled or readonly keeps its text.
Returns
An empty string.
Examples
% spinbox .in
> .in insert 0 world
> .in insert 0 "hello "
> .in get
hello world
# A readonly spinbox keeps its text.
% spinbox .in2 -state readonly
> .in2 insert 0 abc
> .in2 get
Errors
% spinbox .in3; .in3 insert
wrong # args: should be ".in3 insert index text"
-errorcode NONE
% spinbox .in4; .in4 insert foo x
bad spinbox index "foo"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1