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

Method canvasy

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

2826 self._w, 'canvasx', screenx, gridspacing))
2827
2828 def canvasy(self, screeny, gridspacing=None):
2829 """Return the canvas y coordinate of pixel position SCREENY rounded
2830 to nearest multiple of GRIDSPACING units."""
2831 return self.tk.getdouble(self.tk.call(
2832 self._w, 'canvasy', screeny, gridspacing))
2833
2834 def coords(self, *args):
2835 """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.80

Tested by

no test coverage detected