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

Method yview_moveto

Lib/tkinter/__init__.py:2182–2185  ·  view source on GitHub ↗

Adjusts the view in the window so that FRACTION of the total height of the canvas is off-screen to the top.

(self, fraction)

Source from the content-addressed store, hash-verified

2180 return self._getdoubles(res)
2181
2182 def yview_moveto(self, fraction):
2183 """Adjusts the view in the window so that FRACTION of the
2184 total height of the canvas is off-screen to the top."""
2185 self.tk.call(self._w, 'yview', 'moveto', fraction)
2186
2187 def yview_scroll(self, number, what):
2188 """Shift the y-view according to NUMBER which is measured in

Callers 6

resetMethod · 0.80
adjustScrollsMethod · 0.80
__init__Method · 0.80
yscroll_eventMethod · 0.80
viewMethod · 0.80
onResizeMethod · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected