Given a window x-coordinate screenx, return the canvas x-coordinate displayed at that location. If gridspacing is given, the result is rounded to the nearest multiple of gridspacing units.
tkinter/Canvas.canvasx
Canvas.canvasx