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