text delete
Deletes the content from INDEX1 up to INDEX2.
PATHNAME delete INDEX1 ?INDEX2? ?INDEX1 INDEX2 ...?
Description
Deletes the characters, the images, and the widgets from INDEX1 up to the place before INDEX2. With no INDEX2, deletes the one character at INDEX1. More pairs delete more ranges. The last newline of the content stays. A text with -state disabled keeps its content.
Returns
An empty string.
Examples
% text .de
> .de insert end "hello world"
> .de delete 1.0 1.6
> .de get 1.0 1.end
world
Errors
% text .de2; .de2 delete
wrong # args: should be ".de2 delete index1 ?index2 ...?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1