Smarter delays - animator doesnt need to work during delay period

This commit is contained in:
Darren Burns
2022-08-30 15:51:26 +01:00
parent 779f49f858
commit 0455dacfdd
5 changed files with 86 additions and 17 deletions

View File

@@ -1,7 +1,5 @@
from __future__ import annotations
import asyncio
from rich.console import RenderableType
from textual import events
@@ -32,6 +30,7 @@ class JustABox(App):
"opacity",
value=0.0,
duration=2.0,
delay=2.0,
on_complete=self.box.remove,
)