beetlebug▾
/

ttk::combobox 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::combobox .tcbde
> .tcbde insert 0 "hello world"
> .tcbde delete 0 6
> .tcbde get
world

% ttk::combobox .tcbde2
> .tcbde2 insert 0 abc
> .tcbde2 delete 0 end
> .tcbde2 get

Errors

% ttk::combobox .tcbde3; .tcbde3 delete
wrong # args: should be ".tcbde3 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