(self)
| 430 | return self.canvas |
| 431 | |
| 432 | def bind_events(self): |
| 433 | super().bind_events() |
| 434 | |
| 435 | self.main_widget.bind( |
| 436 | # AquaTk defines <2> as the right button, not <3>. |
| 437 | "<Button-2>" if macosx.isAquaTk() else "<Button-3>", |
| 438 | self.context_menu_event, |
| 439 | ) |
| 440 | |
| 441 | def context_menu_event(self, event): |
| 442 | rmenu = tk.Menu(self.main_widget, tearoff=0) |
nothing calls this directly
no test coverage detected