beetlebug▾
/

ttk::spinbox delete

Deletes characters of the text.

PATHNAME delete FIRST ?LAST?

Description

Deletes the characters from the index FIRST up to the character before LAST. With no LAST, deletes the one character at FIRST. A LAST before FIRST deletes no character. A field with the flag readonly or disabled makes no change.

Returns

An empty string.

Examples

% ttk::spinbox .tsbde
> .tsbde insert 0 "hello world"
> .tsbde delete 0 6
> .tsbde get
world

% ttk::spinbox .tsbde2
> .tsbde2 insert 0 abc
> .tsbde2 delete 0 end
> .tsbde2 get

Errors

% ttk::spinbox .tsbde3; .tsbde3 delete
wrong # args: should be ".tsbde3 delete firstIndex ?lastIndex?"
-errorcode NONE

Facts

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

See also