Return the canvas x coordinate of pixel position SCREENX rounded to nearest multiple of GRIDSPACING units.
(self, screenx, gridspacing=None)
| 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 |