I would like to write a Python/wxPython app that implements wx.FileDropTarget. This part is easy. I would also like to show the file icon as it is dragged over the app window and then display a proxy with file icon (and other meta-data, perhaps, like size) within the app window.
I would like to implement this on Windows 7. But I am interested in being able to make this work on OS X and Linux as well.
I have googled and searched through Python v2.7.1 documentation - but to no avail. I am somewhat new the ways of Windows, so if there is a way to divine a BMP or ICO file that is associated with a file - then I am okay with going that route...
Any example code is always appreciated.
I think there's not only one portable way to accomplish this ... on windows platforms, default icons for file types associations are stored on the system registry (except for executables where the icon is in the exe resources) and on linux platforms it depends on the desktop environment, each one has its own standards ... so i don't think there's an "universal" way to do that.
Accessing file meta-data within Python/wxPython