beetlebug▾
/

ttk::treeview next

Gives the next sibling of an item.

PATHNAME next ITEM

Description

Gives the ID of the next child of the same parent, or an empty string for the last child.

Returns

An ID, or an empty string.

Examples

% ttk::treeview .ttvne
> .ttvne insert {} end -id a
> .ttvne insert {} end -id b
> list [.ttvne next a] [.ttvne next b]
b {}

Errors

% ttk::treeview .ttvne2; .ttvne2 next 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

See also