Skip to content

Instantly share code, notes, and snippets.

@paulrobello
Created December 3, 2025 19:55
Show Gist options
  • Select an option

  • Save paulrobello/05458d57039027e39c123b03116e4ca5 to your computer and use it in GitHub Desktop.

Select an option

Save paulrobello/05458d57039027e39c123b03116e4ca5 to your computer and use it in GitHub Desktop.
Textual 6.7.0,6.7.1 loading indicator regression
"""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