using windows defaults for executing/examining files

Micah dropthis_fanmail at micah-wedemeyer.net
Wed Aug 25 14:30:52 EDT 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 )

Micah
"Diez B. Roggisch" <deetsNOSPAM at web.de> wrote in message
news:cgikd2$bnb$02$1 at news.t-online.com...
> Micah wrote:
>
> > Is there an os module call to request that Windows handle a specific
file
> > using the default handler?  For example, if I pass it a .txt file it
opens
> > 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