mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
20 lines
399 B
Python
20 lines
399 B
Python
from textual.app import App
|
|
|
|
from textual.widgets import Static
|
|
|
|
|
|
class TableLayoutApp(App):
|
|
def compose(self):
|
|
yield Static("foo", id="foo")
|
|
yield Static("bar")
|
|
yield Static("baz")
|
|
|
|
yield Static("foo")
|
|
yield Static("bar")
|
|
yield Static("baz", id="last")
|
|
|
|
|
|
app = TableLayoutApp(css_path="table_layout.css")
|
|
if __name__ == "__main__":
|
|
app.run()
|