mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-10-29 23:39:00 -04:00
eebd5d8c6d
This ended up way fancier than I imagined.
8 lines
190 B
Python
8 lines
190 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()
|