[wxPython-users] How do I find/display the icons associated with file type

Geoff Skerrett Geoff at teammsa.com
Mon Sep 3 05:30:57 PDT 2007


> -----Original Message-----
> From: Werner F. Bruhin [mailto:werner.bruhin at free.fr] 
> Sent: Sunday, September 02, 2007 2:16 PM
> To: wxPython-users at lists.wxwidgets.org
> Subject: Re: [wxPython-users] How do I find/display the icons 
> associated with file type
> 
> Geoff,
> 
> Geoff Skerrett wrote:
> > I am hoping someone can point me in the right direction.
> >  
> > We have an application where users can select files from 
> directories.
> > The resulting files are displayed in a CustomTree control.
> >  
> > We would like the to display the associated icon for the 
> file type -- 
> > so if it is a PDF file, then the icon for Acrobat Reader would 
> > display, if the file is an Excel spreadsheet, the Excel 
> icon display, etc.
> >  
> > Does anyone do something similiar ?
> > If not, any suggestions would be appreciated.
> > - currently all files use a generic icon in the tree 
> control, so this 
> > is a "usability" feature we would like to add.
> Have a look in the archive of this list, around the middle of 
> June there was a thread on this "[wxPython-users] Fetch 
> file's associated icon"
> 
> Werner
> 

Thanks Werner.
You tip wasn't exactly correct, but it did lead me to a post by Robin
suggesting the use of wx.MimeTypesManager and then the corresponding
wx.FileTypes.

Thanks for getting me started.

Geoff.




More information about the wxpython-users mailing list