Tkinter.Canvas.winfo_pointerx

Canvas.winfo_pointerx()

Return the x coordinate of the pointer on the root window.