MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / __init__

Method __init__

gui/utils.py:104–112  ·  view source on GitHub ↗
(self, widget: ctk.CTkBaseClass, text_key: str)

Source from the content-addressed store, hash-verified

102 """
103
104 def __init__(self, widget: ctk.CTkBaseClass, text_key: str):
105 self.widget = widget
106 self.text_key = text_key
107 self.tooltip_window: Optional[ctk.CTkToplevel] = None
108 self._scheduled_id = None
109
110 widget.bind("<Enter>", self._schedule_show)
111 widget.bind("<Leave>", self._hide)
112 widget.bind("<ButtonPress>", self._hide)
113
114 def _schedule_show(self, event=None) -> None:
115 """Schedule tooltip to appear after delay."""

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected