Tree¶
Added in version 0.6.0
A tree control widget.
- Focusable
- Container
Example¶
The example below creates a simple tree.
Tree
label
data
name
id
classes
disabled
BINDINGS
COMPONENT_CLASSES
ICON_NODE
ICON_NODE_EXPANDED
auto_expand
center_scroll
cursor_line
cursor_node
guide_depth
hover_line
last_line
root
show_guides
show_root
NodeCollapsed
NodeExpanded
NodeHighlighted
NodeSelected
action_cursor_down
action_cursor_next_sibling
action_cursor_parent
action_cursor_parent_next_sibling
action_cursor_previous_sibling
action_cursor_up
action_page_down
action_page_up
action_scroll_end
action_scroll_home
action_select_cursor
action_toggle_expand_all
action_toggle_node
add_json
clear
get_label_width
get_node_at_line
get_node_by_id
move_cursor
move_cursor_to_line
process_label
render_label
reset
scroll_to_line
scroll_to_node
select_node
unselect
validate_cursor_line
validate_guide_depth
tree
EventTreeDataType
NodeID
TreeDataType
AddNodeError
RemoveRootError
TreeNode
UnknownNodeID