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

Method redirect_mousebutton_event

Lib/idlelib/sidebar.py:126–130  ·  view source on GitHub ↗

Redirect mouse button events to the main editor text widget.

(self, event, event_name)

Source from the content-addressed store, hash-verified

124 return 'break'
125
126 def redirect_mousebutton_event(self, event, event_name):
127 """Redirect mouse button events to the main editor text widget."""
128 self.text.focus_set()
129 self.text.event_generate(event_name, x=0, y=event.y)
130 return 'break'
131
132 def redirect_mousewheel_event(self, event):
133 """Redirect mouse wheel events to the editwin text widget."""

Callers

nothing calls this directly

Calls 2

event_generateMethod · 0.80
focus_setMethod · 0.45

Tested by

no test coverage detected