mouse-position

Mouse Position Python Tkinter

Mouse Position Python Tkinter Question: Is there a way to get the position of the mouse and set it as a var? Asked By: Kyle Pfromer || Source Answers: You could set up a callback to react to <Motion> events: import Tkinter as tk root = tk.Tk() def motion(event): x, y = event.x, event.y print(‘{}, …

Total answers: 4