Re: [Boa Constr] converting the matplotlib example so that it can be read Boa
Status: Beta
Brought to you by:
riaan
From: jrlen b. <nbb...@gm...> - 2005-03-31 05:34:02
|
also when i enable this part(sort of renamed it): self.frame = PlotFigure() self.frame.plot_data() self.frame.Show() =============================================== the error i get is when i try to run the main frame and click the button to call this frame: wxFrame2.create(self).Show(true) File "E:\final docu\shorterFolder4.2pssl2\wxFrame2.py", line 14, in create return wxFrame2(parent) File "E:\final docu\shorterFolder4.2pssl2\wxFrame2.py", line 47, in __init__ self.frame = PlotFigure() NameError: global name 'PlotFigure' is not defined ================================================= and when i try to go to the designer i get this error: 13:36:28: Views.InspectableViews.DesignerError: Figure is not defined on the Palette.Traceback (most recent call last): 13:36:28: Views.InspectableViews.DesignerError: Figure is not defined on the Palette. File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Models\wxPythonControllers.py", line 80, in OnDesigner 13:36:28: self.showDesigner() 13:36:28: File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Models\wxPythonControllers.py", line 145, in showDesigner 13:36:28: designer.refreshCtrl() 13:36:28: File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\Designer.py",line 379, in refreshCtrl 13:36:28: self.initObjectsAndCompanions(objCol.creators[1:], objCol, deps, depLnks) 13:36:28: File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\InspectableViews.py", line 138, in initObjectsAndCompanions 13:36:28: self.initObjCreator(constr) 13:36:28: File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\Designer.py",line 504, in initObjCreator 13:36:28: InspectableObjectView.initObjCreator(self, constrPrs) 13:36:28: File "C:\PYTHON23\Lib\site-packages\wxPython\tools\boa\Views\InspectableViews.py", line 157, in initObjCreator 13:36:28: raise DesignerError, \ 13:36:28: Views.InspectableViews.DesignerError: Figure is not defined on the Palette. =============================================== any help will be greatly appreciated... |