0x0/modui/notification.py

10 lines
191 B
Python
Raw Normal View History

from textual.widgets import Static
2024-09-27 11:39:18 -04:00
class Notification(Static):
def on_mount(self) -> None:
self.set_timer(3, self.remove)
def on_click(self) -> None:
self.remove()