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

22 lines
516 B
Python

from textual.app import App
from textual.containers import Container
from textual.widgets import Label
class DockAllApp(App):
CSS_PATH = "dock_all.tcss"
def compose(self):
yield Container(
Container(Label("left"), id="left"),
Container(Label("top"), id="top"),
Container(Label("right"), id="right"),
Container(Label("bottom"), id="bottom"),
id="big_container",
)
if __name__ == "__main__":
app = DockAllApp()
app.run()