Printing a Tree in GUI mode
uiDisplayTree(tree)
:tree a Tree. :
Display a tree into the a graphic window.
// We should create nodes(subTrees) before creating trees
leaf11 = `uiCreateNode`_('leaf 1.1')
leaf12 = `uiCreateNode`_('leaf 1.2')
leaf31 = `uiCreateNode`_('leaf 3.1')
leaf32 = `uiCreateNode`_('leaf 3.2')
node1 = `uiCreateNode`_('Node 1')
node2 = `uiCreateNode`_('Node 2')
node3 = `uiCreateNode`_('Node 3')
root = `uiCreateNode`_('Root')
treeNode1 = `uiCreateTree`_(node1, leaf11, leaf12)
treeNode3 = `uiCreateTree`_(node3, leaf31, leaf32)
treeRoot = `uiCreateTree`_( root, treeNode1, node2, treeNode3)
uiDisplayTree(treeRoot)