ttk::treeview prev
Gives the previous sibling of an item.
PATHNAME prev ITEM
Description
Gives the ID of the previous child of the same parent, or an empty string for the first child.
Returns
An ID, or an empty string.
Examples
% ttk::treeview .ttvpv
> .ttvpv insert {} end -id a
> .ttvpv insert {} end -id b
> list [.ttvpv prev b] [.ttvpv prev a]
a {}
Errors
% ttk::treeview .ttvpv2; .ttvpv2 prev 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