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

Method canvasx

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

2949 sequence, func, add)
2950
2951 def canvasx(self, screenx, gridspacing=None):
2952 """Return the canvas x coordinate of pixel position SCREENX rounded
2953 to nearest multiple of GRIDSPACING units."""
2954 return self.tk.getdouble(self.tk.call(
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

Callers

nothing calls this directly

Calls 2

getdoubleMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected