textual/docs/examples/styles/box_sizing.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

15 lines
336 B
Python

from textual.app import App
from textual.widgets import Static
class BoxSizingApp(App):
CSS_PATH = "box_sizing.tcss"
def compose(self):
yield Static("I'm using border-box!", id="static1")
yield Static("I'm using content-box!", id="static2")
if __name__ == "__main__":
app = BoxSizingApp()
app.run()