[python-win32] Retrieve Icons Associated To An Extension?

Niki Spahiev niki at vintech.bg
Wed Mar 30 12:43:26 CEST 2005


andrea.gavana at agip.it wrote:

> Hello NG,
> 
>       I have searched everyweher, and I am not able to find a solution...
> basically, I am constructing a GUI with wxPython, in which I have a list.
> In this list control, I have some file. I would like to associate (to every
> file) its icon (on Windows). I have searched about the use of Mark
> Hammond's win32all extensions and also ctypes, but I didn't find a
> solution. Could anyone please provide a very simple example on how to
> retrieve an icon associated to a file extension on Windows?

There is wxPython based image viewer (IIRC cornflake) which has such thing.

HTH
Niki Spahiev


More information about the Python-win32 mailing list