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

Method canvasy

Lib/tkinter/__init__.py:3040–3044  ·  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

3038 self._w, 'canvasx', screenx, gridspacing))
3039
3040 def canvasy(self, screeny, gridspacing=None):
3041 """Return the canvas y coordinate of pixel position SCREENY rounded
3042 to nearest multiple of GRIDSPACING units."""
3043 return self.tk.getdouble(self.tk.call(
3044 self._w, 'canvasy', screeny, gridspacing))
3045
3046 def coords(self, *args):
3047 """Return a list of coordinates for the item given in ARGS."""

Callers 2

eventfunMethod · 0.80
viewMethod · 0.80

Calls 2

getdoubleMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected