mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
27 lines
631 B
Python
27 lines
631 B
Python
from textual import layout
|
|
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class UtilityContainersExample(App):
|
|
CSS_PATH = "utility_containers.css"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield layout.Horizontal(
|
|
layout.Vertical(
|
|
Static("One"),
|
|
Static("Two"),
|
|
classes="column",
|
|
),
|
|
layout.Vertical(
|
|
Static("Three"),
|
|
Static("Four"),
|
|
classes="column",
|
|
),
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = UtilityContainersExample()
|
|
app.run()
|