Files
textual/examples/basic.py
Will McGugan f40b339888 eol
2021-12-04 18:56:29 +00:00

21 lines
459 B
Python

from textual.app import App
from textual.widget import Widget
class BasicApp(App):
"""A basic app demonstrating CSS"""
def on_mount(self) -> None:
"""Build layout here."""
self.view.mount(
header=Widget(),
content=Widget(),
footer=Widget(),
sidebar=Widget(),
)
self.panic(self.query("#sidebar").first().styles)
BasicApp.run(log="textual.log", css_file="basic.css")