MCPcopy Index your code
hub / github.com/RustPython/RustPython / canvasy

Method canvasy

Lib/tkinter/__init__.py:2957–2961  ·  view source on GitHub ↗

Return the canvas y coordinate of pixel position SCREENY rounded to nearest multiple of GRIDSPACING units.

(self, screeny, gridspacing=None)

Source from the content-addressed store, hash-verified

2955 self._w, 'canvasx', screenx, gridspacing))
2956
2957 def canvasy(self, screeny, gridspacing=None):
2958 """Return the canvas y coordinate of pixel position SCREENY rounded
2959 to nearest multiple of GRIDSPACING units."""
2960 return self.tk.getdouble(self.tk.call(
2961 self._w, 'canvasy', screeny, gridspacing))
2962
2963 def coords(self, *args):
2964 """Return a list of coordinates for the item given in ARGS."""

Callers

nothing calls this directly

Calls 2

getdoubleMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected