I have a Tkinter canvas with a scrollbar and some elements which, when I click on them, should return the coordinates. (Using Python.)
This works great with objects that are initially visible in the window. However, when I scroll down and the elements located lower on the canvas are visible, I do not get their canvas coordinates when I click, but in the coordinates of the window.
I cannot find information on how to get the absolute coordinates, so I wonder if anyone knows how to do this?
Thanks.
source share