From: Werner F. B. <wer...@fr...> - 2007-06-08 15:38:08
|
Hi Andrew, Andrew Straw wrote: > ... > Dear Werner, > > I am reluctant to eliminate the sub-folder structure because I think > it would add the possibility of unnecessary bugs to just the py2exe > built version. Would it be possible for you to re-factor this to > include the directory layout? When you test it, can you test some > interactive plot to make sure all the button icons are loaded properly? I don't know how to change "matplotlib.get_py2exe_datafiles()" to retain the folder structure. But in the attached setup.py I used "matplotlib.get_data_path()" for each of the sub-folders and then define the folder structure again in the py2exe "data_files" section. The enclosed setup.py builds an exe for embedding_in_wx.py and I have no problems running it and the toolbar shows all its icons. I am also enclosing some example files which I have upgraded to the new wxPython namespace - I had sent them some time ago but the examples.zip file I just downloaded contains the old versions. dynamic_demo_wx.py, namespace changes and a OnClose event to stop the timer (otherwise the script can not be stopped by clicking on the X). dynamic_image_wxagg.py, namespace changes dynamic_image_wxagg2.py, namespace changes and removed numarray stuff. embedding_in_wx.py, namespace changes embedding_in_wx2.py, namespace changes embedding_in_wx4.py, namespace changes Can you update the zip file with the above files? Best regards Werner |