summaryrefslogtreecommitdiff
path: root/modui/notification.py
diff options
context:
space:
mode:
Diffstat (limited to 'modui/notification.py')
-rw-r--r--modui/notification.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modui/notification.py b/modui/notification.py
new file mode 100644
index 0000000..ecae6e4
--- /dev/null
+++ b/modui/notification.py
@@ -0,0 +1,8 @@
+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()