Open files with double click

brian christensen wrote:

I have been able to tell Windows and the Mac to open the application when its data file is double clicked, but what do you have to do in the application to recognized that it is being started by double clicking a data file? Where do you find the name(s) of the file(s) that were double clicked? Is there a wxWidgets function for that? Or do you use Python?

On Windows and all unix environments that I know about it will be in sys.argv. On OSX you need to override the MacOpenFile method in a class derived from wx.App. See http://wiki.wxpython.org/index.cgi/Optimizing_20for_20Mac_20OS_20X

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!