mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
23 lines
499 B
Python
23 lines
499 B
Python
from textual.app import App
|
|
from textual.containers import Grid
|
|
from textual.widgets import Label
|
|
|
|
|
|
class MyApp(App):
|
|
def compose(self):
|
|
yield Grid(
|
|
Label("1fr"),
|
|
Label("1fr"),
|
|
Label("height = 6"),
|
|
Label("height = 6"),
|
|
Label("25%"),
|
|
Label("25%"),
|
|
Label("1fr"),
|
|
Label("1fr"),
|
|
Label("height = 6"),
|
|
Label("height = 6"),
|
|
)
|
|
|
|
|
|
app = MyApp(css_path="grid_rows.css")
|