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

Method yscroll_event

Lib/idlelib/sidebar.py:488–494  ·  view source on GitHub ↗

Redirect vertical scrolling to the main editor text widget. The scroll bar is also updated.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

486 index = text.index(f'{index}+1line')
487
488 def yscroll_event(self, *args, **kwargs):
489 """Redirect vertical scrolling to the main editor text widget.
490
491 The scroll bar is also updated.
492 """
493 self.change_callback()
494 return 'break'
495
496 def update_font(self):
497 """Update the sidebar text font, usually after config changes."""

Callers

nothing calls this directly

Calls 1

change_callbackMethod · 0.95

Tested by

no test coverage detected