Files
textual/docs/examples/styles/display.py
Dave Pearson 414096233b Make all styles reference examples capable of being run standalone
Also move the declarations of the stylesheets into the app classes.

See #3650
2023-11-08 14:37:01 +00:00

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()