ttk::spinbox insert
Inserts a text before a character.
PATHNAME insert INDEX TEXT
Description
Inserts TEXT before the character at INDEX. An INDEX past the end adds the text at the end. A field with the flag readonly or disabled makes no change. With -validate key, the validation script can stop the insert.
Returns
An empty string.
Examples
% ttk::spinbox .tsbin
> .tsbin insert 0 world
> .tsbin insert 0 "hello "
> .tsbin insert end !
> .tsbin get
hello world!
Errors
% ttk::spinbox .tsbin2; .tsbin2 insert 0
wrong # args: should be ".tsbin2 insert index text"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1