beetlebug▾
/

ttk::treeview exists

Tests whether an item exists.

PATHNAME exists ITEM

Description

Gives 1 when the tree view has an item with the ID ITEM, also a detached item, else 0.

Returns

1 or 0.

Examples

% ttk::treeview .ttvex
> .ttvex insert {} end -id a
> list [.ttvex exists a] [.ttvex exists zz]
1 0

Errors

% ttk::treeview .ttvex2; .ttvex2 exists
wrong # args: should be ".ttvex2 exists item"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also