mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Smarter delays - animator doesnt need to work during delay period
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user