mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
20 lines
536 B
Python
20 lines
536 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class GridLayoutExample(App):
|
|
CSS_PATH = "grid_layout4_row_col_adjust.tcss"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Static("One", 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")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = GridLayoutExample()
|
|
app.run()
|