MCPcopy Index your code
hub / github.com/Akascape/CTkCodeBox / do_popup

Method do_popup

CTkCodeBox/text_menu.py:36–42  ·  view source on GitHub ↗

open the popup menu

(self, event)

Source from the content-addressed store, hash-verified

34 self.widget.bind("<Button-2>", lambda event: self.do_popup(event))
35
36 def do_popup(self, event):
37 """ open the popup menu """
38
39 super().config(bg=self.widget._apply_appearance_mode(self.fg_color),
40 fg=self.widget._apply_appearance_mode(self.text_color),
41 activebackground=self.widget._apply_appearance_mode(self.hover_color))
42 self.tk_popup(event.x_root, event.y_root)
43
44 def cut_text(self):
45 """ cut text operation """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected