mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'main' into add-containers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from textual.app import App
|
||||
from textual.containers import VerticalScroll
|
||||
from textual.containers import Container
|
||||
from textual.widgets import Label
|
||||
|
||||
TEXT = """I must not fear.
|
||||
@@ -14,7 +14,7 @@ Where the fear has gone there will be nothing. Only I will remain.
|
||||
|
||||
class ScrollbarApp(App):
|
||||
def compose(self):
|
||||
yield VerticalScroll(Label(TEXT * 5), classes="panel")
|
||||
yield Container(Label(TEXT * 5), classes="panel")
|
||||
|
||||
|
||||
app = ScrollbarApp(css_path="scrollbar_size.css")
|
||||
|
||||
12
docs/examples/widgets/loading_indicator.py
Normal file
12
docs/examples/widgets/loading_indicator.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import LoadingIndicator
|
||||
|
||||
|
||||
class LoadingApp(App):
|
||||
def compose(self) -> ComposeResult:
|
||||
yield LoadingIndicator()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = LoadingApp()
|
||||
app.run()
|
||||
Reference in New Issue
Block a user