mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a class docstring to Tree
This commit is contained in:
@@ -305,6 +305,8 @@ class TreeNode(Generic[TreeDataType]):
|
||||
|
||||
|
||||
class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
|
||||
"""A widget for displaying and navigating data in a tree."""
|
||||
|
||||
BINDINGS: ClassVar[list[BindingType]] = [
|
||||
Binding("enter", "select_cursor", "Select", show=False),
|
||||
Binding("space", "toggle_node", "Toggle", show=False),
|
||||
|
||||
Reference in New Issue
Block a user