fix for refreshing layout

This commit is contained in:
Will McGugan
2021-09-18 20:45:24 +01:00
parent c14c0fccc3
commit 4903e7c79f
8 changed files with 23 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
from textual import events
from textual.app import App
from textual.widgets import Placeholder
@@ -6,7 +5,7 @@ from textual.widgets import Placeholder
class SimpleApp(App):
"""Demonstrates smooth animation"""
async def on_mount(self, event: events.Mount) -> None:
async def on_mount(self) -> None:
"""Build layout here."""
await self.view.dock(Placeholder(), edge="left", size=40)