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

23 lines
508 B
Python

from textual.app import App
from textual.containers import Grid
from textual.widgets import Placeholder
class MyApp(App):
CSS_PATH = "row_span.tcss"
def compose(self):
yield Grid(
Placeholder(id="p1"),
Placeholder(id="p2"),
Placeholder(id="p3"),
Placeholder(id="p4"),
Placeholder(id="p5"),
Placeholder(id="p6"),
Placeholder(id="p7"),
)
if __name__ == "__main__":
app = MyApp()
app.run()