Created
December 3, 2025 19:55
-
-
Save paulrobello/05458d57039027e39c123b03116e4ca5 to your computer and use it in GitHub Desktop.
Textual 6.7.0,6.7.1 loading indicator regression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Simple Textual TUI with a loading indicator widget.""" | |
| from textual.app import App, ComposeResult | |
| from textual.widgets import Static | |
| class LoadingWidget(Static): | |
| """A widget that shows a loading indicator.""" | |
| class LoadingApp(App[None]): | |
| """Simple app with a single loading widget.""" | |
| def compose(self) -> ComposeResult: | |
| """Compose the app with the loading widget.""" | |
| widget = LoadingWidget("Loading content...") | |
| widget.loading = True | |
| yield widget | |
| if __name__ == "__main__": | |
| app = LoadingApp() | |
| app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment