using windows defaults for executing/examining files

Micah dropthis_fanmail at
Wed Aug 25 20:30:52 CEST 2004

Using wxPython, is there any way to get the icon associated with a file?  I
want to be able to display the icon, then when it's double clicked, it
executes the file (using os.startfile )

"Diez B. Roggisch" <deetsNOSPAM at> wrote in message
news:cgikd2$bnb$02$1 at
> Micah wrote:
> > Is there an os module call to request that Windows handle a specific
> > using the default handler?  For example, if I pass it a .txt file it
> > notepad but if I pass a .wav file it opens Windows Media Player.
> os.startfile()
> -- 
> Regards,
> Diez B. Roggisch

More information about the Python-list mailing list