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

Method canvasx

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:2822–2826  ·  view source on GitHub ↗

Return the canvas x coordinate of pixel position SCREENX rounded to nearest multiple of GRIDSPACING units.

(self, screenx, gridspacing=None)

Source from the content-addressed store, hash-verified

2820 sequence, func, add)
2821
2822 def canvasx(self, screenx, gridspacing=None):
2823 """Return the canvas x coordinate of pixel position SCREENX rounded
2824 to nearest multiple of GRIDSPACING units."""
2825 return self.tk.getdouble(self.tk.call(
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

Callers 1

eventfunMethod · 0.80

Calls 2

getdoubleMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected