My issue is essentially spelled out in the title. I want to be able to catch clicks (more specifically double clicks) on icons on the desktop or in folders or wherever, and tell where the click was on the icon (the coordinates of the click along with the whole size of where they could have clicked).
What I'm trying to do is make it so that you can open a file with different programs easily by clicking on different parts of the icon. For example, I want to be able to double click on a python file on the left side to open it with a certain text editor I like to use, and on the right to open it with the python interpreter.