Stop animation before delegating DOM removal to Textual. Returns: Awaitable that completes once the widget is removed from the DOM.
(self)
| 140 | self._stop_timer() |
| 141 | |
| 142 | def remove(self) -> AwaitRemove: |
| 143 | """Stop animation before delegating DOM removal to Textual. |
| 144 | |
| 145 | Returns: |
| 146 | Awaitable that completes once the widget is removed from the DOM. |
| 147 | """ |
| 148 | self._stop_timer() |
| 149 | return super().remove() |
| 150 | |
| 151 | def _stop_timer(self) -> None: |
| 152 | """Stop the animation timer if it is running.""" |