# Tree
Play Demo
Displays a simulated scene hierarchy in a TreeView widget. Users can
expand/collapse branches, select items, add children to the selected
node, or remove the selected node. A status label reflects the
current selection.
Run: uv run python packages/graphics/examples/ui_tree_demo.py
## Source Code
```{literalinclude} ../../packages/graphics/examples/ui_tree.py
:language: python
:linenos:
```