canvas = turtle.getcanvas() x, y = canvas.winfo_pointerx(), canvas.winfo_pointery() # or # x, y = canvas.winfo_pointerxy()