Add a class docstring to Tree

This commit is contained in:
Dave Pearson
2023-03-01 13:35:24 +00:00
parent 6d038299fd
commit 106c5aa2c8

View File

@@ -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),