mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
17 lines
325 B
Python
17 lines
325 B
Python
from textual.app import App
|
|
from textual.widgets import Static
|
|
|
|
|
|
class DisplayApp(App):
|
|
CSS_PATH = "display.tcss"
|
|
|
|
def compose(self):
|
|
yield Static("Widget 1")
|
|
yield Static("Widget 2", classes="remove")
|
|
yield Static("Widget 3")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = DisplayApp()
|
|
app.run()
|