open the popup menu
(self, event)
| 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 """ |