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

Method canvasx

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

3032 sequence, func, add)
3033
3034 def canvasx(self, screenx, gridspacing=None):
3035 """Return the canvas x coordinate of pixel position SCREENX rounded
3036 to nearest multiple of GRIDSPACING units."""
3037 return self.tk.getdouble(self.tk.call(
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

Callers 1

eventfunMethod · 0.80

Calls 2

getdoubleMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected