mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
13 lines
294 B
Python
13 lines
294 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class JustABox(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Static("Hello, World!", id="box")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = JustABox(css_path="just_a_box.css", watch_css=True)
|
|
app.run()
|