Tkinter: Determine Widget Position Relative To Root Window
The tkinter MouseWheel event can only be bound to the root window. Thus the event position is also relative to the root position. For a canvas zooming operation, I would like to g
Solution 1:
You want to use the winfo_x and winfo_y methods to get the x/y position relative to the parent.
Post a Comment for "Tkinter: Determine Widget Position Relative To Root Window"