MCPcopy
hub / github.com/Sathvik-Rao/ClipCascade / CustomDialog

Class CustomDialog

ClipCascade_Desktop/src/cli/info.py:4–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class CustomDialog:
5 def __init__(self, message, msg_type="", timeout=None):
6 self.message = message
7 self.msg_type = msg_type.lower()
8 self.timeout = timeout
9
10 def mainloop(self):
11 if self.msg_type == "success":
12 Echo("✅", self.message)
13 elif self.msg_type == "error":
14 Echo("❌", self.message)
15 elif self.msg_type == "warning":
16 Echo("⚠️", self.message)
17 elif self.msg_type == "info":
18 Echo("ℹ", self.message)
19 else:
20 Echo(self.message)
21
22 def close(self):
23 pass

Callers 12

notifyMethod · 0.90
__init__Method · 0.90
runMethod · 0.90
mainloopMethod · 0.90
update_menuMethod · 0.90
open_webbrowserMethod · 0.90
_open_logsMethod · 0.90
_on_downloadMethod · 0.90
_on_logoffMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected