textual/examples/basic.py
Will McGugan 942b00f255 ws
2021-10-25 13:50:00 +01:00

31 lines
480 B
Python

from textual.app import App
from textual.widgets import Placeholder
class BasicApp(App):
"""Demonstrates smooth animation. Press 'b' to see it in action."""
css = """
App > View {
layout: dock
}
#widget1 {
edge: top
}
#widget2 {
}
"""
async def on_mount(self) -> None:
"""Build layout here."""
await self.view.mount(widget1=Placeholder(), widget2=Placeholder())
SmoothApp.run(log="textual.log")