We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set_loading
1 parent 8fa5640 commit 4a8d37fCopy full SHA for 4a8d37f
src/textual/widget.py
@@ -953,7 +953,8 @@ def get_loading_widget(self) -> Widget:
953
def set_loading(self, loading: bool) -> None:
954
"""Set or reset the loading state of this widget.
955
956
- A widget in a loading state will display a LoadingIndicator that obscures the widget.
+ A widget in a loading state will display a `LoadingIndicator` or a custom widget
957
+ set through overriding the `get_loading_widget` method.
958
959
Args:
960
loading: `True` to put the widget into a loading state, or `False` to reset the loading state.
0 commit comments