mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a docstring to watch_disabled
This commit is contained in:
@@ -2153,6 +2153,7 @@ class Widget(DOMNode):
|
||||
self._update_styles()
|
||||
|
||||
def watch_disabled(self) -> None:
|
||||
"""Update the styles of the widget and its children when disabled is toggled."""
|
||||
for node in self.walk_children(with_self=True):
|
||||
node._update_styles()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user