Files
textual/docs/examples/widgets/placeholders.py
Will McGugan 2ded0fa54b ws
2021-08-06 11:54:20 +01:00

17 lines
425 B
Python

from textual import events
from textual.app import App
from textual.widgets import Placeholder
class SimpleApp(App):
"""Demonstrates smooth animation"""
async def on_mount(self, event: events.Mount) -> None:
"""Build layout here."""
await self.view.dock(Placeholder(), edge="left", size=40)
await self.view.dock(Placeholder(), Placeholder(), edge="top")
SimpleApp.run(log="textual.log")