MCPcopy Index your code
hub / github.com/python/cpython / bind_events

Method bind_events

Lib/idlelib/sidebar.py:432–439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

superClass · 0.85
bind_eventsMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected