Files
dotfiles/ClipCascade/cli/info.py
T
2026-07-23 16:48:58 +02:00

24 lines
628 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from cli.echo import Echo
class CustomDialog:
def __init__(self, message, msg_type="", timeout=None):
self.message = message
self.msg_type = msg_type.lower()
self.timeout = timeout
def mainloop(self):
if self.msg_type == "success":
Echo("✅", self.message)
elif self.msg_type == "error":
Echo("❌", self.message)
elif self.msg_type == "warning":
Echo("⚠️", self.message)
elif self.msg_type == "info":
Echo("", self.message)
else:
Echo(self.message)
def close(self):
pass