Skip to content

rs_rich.tree

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich.tree: Tree, a renderable tree structure.

Tree

rich.tree.Tree: a renderable tree structure.

ASCII_GUIDES instance-attribute

ASCII_GUIDES: Tuple[str, str, str, str]

TREE_GUIDES instance-attribute

TREE_GUIDES: List[Tuple[str, str, str, str]]

label instance-attribute

label: RenderableType

style instance-attribute

style: StyleType

guide_style instance-attribute

guide_style: StyleType

children instance-attribute

children: List[Tree]

expanded instance-attribute

expanded: bool

highlight instance-attribute

highlight: bool

hide_root instance-attribute

hide_root: bool

add

add(label: RenderableType, *, style: Optional[StyleType] = None, guide_style: Optional[StyleType] = None, expanded: bool = True, highlight: Optional[bool] = False) -> Tree