mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
19 lines
556 B
Python
19 lines
556 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class GridLayoutExample(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Static("Oneeee", classes="box")
|
|
yield Static("Two", classes="box")
|
|
yield Static("Three", classes="box")
|
|
yield Static("Four", classes="box")
|
|
yield Static("Five", classes="box")
|
|
yield Static("Six", classes="box")
|
|
yield Static("Seven", classes="box")
|
|
|
|
|
|
app = GridLayoutExample(css_path="grid_layout1.css")
|
|
if __name__ == "__main__":
|
|
app.run()
|