[Boa Constr] Re: upgrading apps
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2005-02-23 14:25:18
|
Hi sosman, I managed to get your sources. Did you at some point make manual changes in the generated code area? Here is one thing I found: def _init_coll_menubar_Menus(self, parent): # generated method, don't edit parent.Append(menu=self.fileMenu, title='File') parent.Append(menu=self.treeMenu, title='Edit') parent.Append(menu=self.helpMenu, title='Help') Changed "Edit" menu line, I assume you want the self.treeMenu there? But now I am getting a different error/traceback, which I haven't figured out yet. Riaan, it would be nice if somehow the traceback could pin point the line in question within "user" program. See you Werner sosman wrote: > Having run my upgrader.py (see previous email) on my source code and > fixing up other things by hand, my application runs with no apparent > exceptions and would appear to be fully functional. This is good. > > There is still some weirdness though: > > a) The toolbar doesn't appear to be drawn correctly, the button > images look a little strange (maybe a transparency issue). > > b) It errors when attempting to start Boa designer see error trace > below. > > Any pointers on fixes or sensible approaches to debugging this would be > appreciated. FWIW a tarball is located at > http://metrak.com/brewsta/files/brewsta-259M-src.tgz > > I am running WinXP and a recent version of Boa 0.4 (I am getting timeout > errors on CVS since Riaan's last announcement so I am not sure whether I > have the latest). > > 22:25:31: name 'RecipeModel' is not defined > 22:25:31: name 'getConfig' is not defined > [the errors above have been around for a while and haven't prevented me > from running the designer] > 22:25:31: Traceback (most recent call last): > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Models\wxPythonControllers.py", > line 80, in OnDesigner > 22:25:31: self.showDesigner() > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Models\wxPythonControllers.py", > line 126, in showDesigner > 22:25:31: dataView.initialize() > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Views\DataView.py", > line 71, in initialize > 22:25:31: self.initObjectsAndCompanions(objCol.creators, objCol, > deps, depLinks) > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Views\DataView.py", > line 74, in initObjectsAndCompanions > 22:25:31: InspectableObjectView.initObjectsAndCompanions(self, > creators, objColl, dependents, depLinks) > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Views\InspectableViews.py", > line 149, in initObjectsAndCompanions > 22:25:31: self.addCollView(ctrlName, collInit.method, false) > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Views\InspectableViews.py", > line 268, in addCollView > 22:25:31: collComp.applyDesignTimeDefaults(crt.params, crt.method) > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Companions\BaseCompanions.py", > line 1258, in applyDesignTimeDefaults > 22:25:31: paramItems = self.designTimeDefaults(params, method).items() > 22:25:31: File > "C:\usr\Python23\Lib\site-packages\wx-2.5.3-msw-unicode\wxPython\tools\boa\Companions\UtilCompanions.py", > line 516, in designTimeDefaults > 22:25:31: raise 'Invalid menu reference' > 22:25:31: Invalid menu reference > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click |