mirror of
https://git.0x0.st/mia/0x0.git
synced 2026-01-12 21:32:05 +03:00
Add moderation TUI
This ended up way fancier than I imagined.
This commit is contained in:
8
modui/notification.py
Normal file
8
modui/notification.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user