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

Method handle_yview

Lib/idlelib/editor.py:490–499  ·  view source on GitHub ↗

Handle scrollbar.

(self, event, *args)

Source from the content-addressed store, hash-verified

488 menuitem.entryconfig(index, state=state)
489
490 def handle_yview(self, event, *args):
491 "Handle scrollbar."
492 if event == 'moveto':
493 fraction = float(args[0])
494 lines = (round(self.getlineno('end') * fraction) -
495 self.getlineno('@0,0'))
496 event = 'scroll'
497 args = (lines, 'units')
498 self.text.yview(event, *args)
499 return 'break'
500
501 rmenu = None
502

Callers

nothing calls this directly

Calls 2

getlinenoMethod · 0.95
yviewMethod · 0.45

Tested by

no test coverage detected