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

Method xview_moveto

Lib/tkinter/__init__.py:2161–2164  ·  view source on GitHub ↗

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

(self, fraction)

Source from the content-addressed store, hash-verified

2159 return self._getdoubles(res)
2160
2161 def xview_moveto(self, fraction):
2162 """Adjusts the view in the window so that FRACTION of the
2163 total width of the canvas is off-screen to the left."""
2164 self.tk.call(self._w, 'xview', 'moveto', fraction)
2165
2166 def xview_scroll(self, number, what):
2167 """Shift the x-view according to NUMBER which is measured in "units"

Callers 4

resetMethod · 0.80
adjustScrollsMethod · 0.80
__init__Method · 0.80
onResizeMethod · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected