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