mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
17 lines
425 B
Python
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")
|