Add attribute documentation to Tree.NodeCollapsed

This commit is contained in:
Dave Pearson
2022-12-11 21:45:31 +00:00
parent 1e1289f5e2
commit 25a24fc3e6

View File

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