MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / xview_moveto

Method xview_moveto

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:1984–1987  ·  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

1982 return self._getdoubles(res)
1983
1984 def xview_moveto(self, fraction):
1985 """Adjusts the view in the window so that FRACTION of the
1986 total width of the canvas is off-screen to the left."""
1987 self.tk.call(self._w, 'xview', 'moveto', fraction)
1988
1989 def xview_scroll(self, number, what):
1990 """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.80

Tested by

no test coverage detected