0x0/modui/notification.py
2024-09-27 18:30:33 +02:00

9 lines
191 B
Python

from textual.widgets import Static
class Notification(Static):
def on_mount(self) -> None:
self.set_timer(3, self.remove)
def on_click(self) -> None:
self.remove()