mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
15 lines
375 B
Python
15 lines
375 B
Python
from textual.app import App, ComposeResult
|
|
from textual.containers import Vertical
|
|
from textual.widgets import Static
|
|
|
|
|
|
class OffsetExample(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Vertical(Static("Child", id="child"), id="parent")
|
|
yield Static("Tag", id="tag")
|
|
|
|
|
|
app = OffsetExample(css_path="offset.css")
|
|
if __name__ == "__main__":
|
|
app.run()
|