panda3d-editor icon indicating copy to clipboard operation
panda3d-editor copied to clipboard

wxPython AttributeError on startup (Linux)

Open nomad321 opened this issue 11 years ago • 0 comments

panda3d 1.8.0, wxPython 2.8.11, Ubuntu Linux 11.10 Error occures in .../ui/sceneGraphBasePanel.py", line 34 on startup

AttributeError: 'FlatMenuBar' object has no attribute 'GetRendererManager'

I looked into the reference and the file (and every parentclass to), and I can't find this attribute. Same for fm.StyleVista in the same line. If this code works on windows, it seems that wxPython differs from platform to platform.

Traceback (most recent call last): File "main.py", line 7, in app = pandaEditor.App( redirect=False ) File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7978, in init self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7552, in _BootstrapApp return core.PyApp__BootstrapApp(_args, *_kwargs) File ".../src/pandaEditor/app.py", line 34, in OnInit self.frame = ui.MainFrame( None, size=(800, 600) ) File ".../src/pandaEditor/ui/mainFrame.py", line 117, in init self.pnlSceneGraph = SceneGraphPanel( self, style=wx.SUNKEN_BORDER ) File ".../src/pandaEditor/ui/sceneGraphPanel.py", line 11, in init SceneGraphBasePanel.init( self, _args, *_kwargs ) File ".../src/pandaEditor/ui/sceneGraphBasePanel.py", line 34, in init self.fm.GetRendererManager().SetTheme( fm.StyleVista ) AttributeError: 'FlatMenuBar' object has no attribute 'GetRendererManager'

nomad321 avatar Mar 12 '13 15:03 nomad321