mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
23 lines
510 B
Python
23 lines
510 B
Python
from textual.app import App
|
|
from textual.containers import Container
|
|
from textual.widgets import Static
|
|
|
|
|
|
class LayoutApp(App):
|
|
def compose(self):
|
|
yield Container(
|
|
Static("Layout"),
|
|
Static("Is"),
|
|
Static("Vertical"),
|
|
id="vertical-layout",
|
|
)
|
|
yield Container(
|
|
Static("Layout"),
|
|
Static("Is"),
|
|
Static("Horizontal"),
|
|
id="horizontal-layout",
|
|
)
|
|
|
|
|
|
app = LayoutApp(css_path="layout.css")
|