mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
20 lines
401 B
Python
20 lines
401 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(),
|
|
)
|
|
|
|
|
|
BasicApp.run(log="textual.log", css_file="basic.css")
|