Add allow

This commit is contained in:
Will McGugan
2022-11-19 19:39:10 +00:00
parent 50d6e9736b
commit 7ed734a524

View File

@@ -166,6 +166,11 @@ class TreeNode(Generic[TreeDataType]):
"""bool: Check if the node is allowed to expand.""" """bool: Check if the node is allowed to expand."""
return self._allow_expand return self._allow_expand
@allow_expand.setter
def allow_expand(self, allow_expand: bool) -> bool:
self._allow_expand = allow_expand
self._updates += 1
def add( def add(
self, self,
label: TextType, label: TextType,