diff options
| author | Mia Herkt <mia@0x0.st> | 2022-12-20 15:45:55 +0100 |
|---|---|---|
| committer | Mia Herkt <mia@0x0.st> | 2022-12-20 16:19:49 +0100 |
| commit | eebd5d8c6d8a756384b6cf1b2cc76b8a83cdf929 (patch) | |
| tree | 764a7c28cbdc165d0cf843f8cc0f6bc53ab224b6 /modui/notification.py | |
| parent | dcea8bffe19b8ba308f9361d6c8ef08281ddff1b (diff) | |
Add moderation TUI
This ended up way fancier than I imagined.
Diffstat (limited to 'modui/notification.py')
| -rw-r--r-- | modui/notification.py | 8 |
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() |
