Add attribute documentation to Tree.NodeSelected

This commit is contained in:
Dave Pearson
2022-12-11 21:45:02 +00:00
parent 058921110e
commit 23e21d7cc0

View File

@@ -309,7 +309,11 @@ class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
}
class NodeSelected(Generic[EventTreeDataType], Message, bubble=True):
"""Event sent when a node is selected."""
"""Event sent when a node is selected.
Attributes:
TreeNode[EventTreeDataType]: The node that was selected.
"""
def __init__(
self, sender: MessageTarget, node: TreeNode[EventTreeDataType]