ttk::treeview index
Gives the place of an item in the children of its parent.
PATHNAME index ITEM
Description
Gives the index from 0 of ITEM in the list of children of its parent.
Returns
An integer.
Examples
% ttk::treeview .ttvix
> .ttvix insert {} end -id a
> .ttvix insert {} end -id b
> .ttvix index b
1
Errors
% ttk::treeview .ttvix2; .ttvix2 index 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