From d366855abd5a2cce0b01e99d97c05f6560197cad Mon Sep 17 00:00:00 2001 From: Twarit Waikar Date: Fri, 9 Aug 2019 01:09:50 +0530 Subject: Add Tree iteration instructions thorugh TreeItem --- doc/classes/Tree.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index c2b7901c05..62a7147e08 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -16,6 +16,7 @@ var subchild1 = tree.create_item(child1) subchild1.set_text(0, "Subchild1") [/codeblock] + To iterate over all the [TreeItem] objects in a [Tree] object, use [method TreeItem.get_next] and [method TreeItem.get_children] after getting the root through [get_root]. -- cgit v1.2.3