ttk::treeview delete
Deletes items and their children.
PATHNAME delete ITEMLIST
Description
Deletes each item of ITEMLIST and each of its children. The root item {} cannot go, and a delete {} makes no change.
Returns
An empty string.
Examples
% ttk::treeview .ttvde
> .ttvde insert {} end -id a
> .ttvde insert a end -id a1
> .ttvde delete a
> list [.ttvde exists a] [.ttvde exists a1]
0 0
Errors
% ttk::treeview .ttvde2; .ttvde2 delete nosuch
Item nosuch not found
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1