This commit is contained in:
Will McGugan
2021-10-25 13:50:00 +01:00
parent e2faad8f46
commit 942b00f255
11 changed files with 189 additions and 113 deletions

31
examples/basic.py Normal file
View File

@@ -0,0 +1,31 @@
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")