![]() |
![]() |
![]() |
![]() |
June 4th, 2007, 09:22 AM
|
#1 | |
|
Commander Keen
Join Date: Nov 2005
Location: New Zealand
Posts: 1,274
|
Snowberry error
Quote:
Code:
File "./snowberry.py", line 26, in <module>
import language, ui, plugins, sb.profdb
File "/home/dave/snowberry/ui.py", line 698, in <module>
app = SnowberryApp()
File "/home/dave/snowberry/ui.py", line 536, in __init__
wx.App.__init__(self, 0)
File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/home/dave/snowberry/ui.py", line 540, in OnInit
self.mainFrame = MainFrame('Snowberry')
File "/home/dave/snowberry/ui.py", line 290, in __init__
self.mainPanel = MainPanel(self.profSplitter)
File "/home/dave/snowberry/ui.py", line 166, in __init__
area.addSpacer()
File "/home/dave/snowberry/sb/widget/area.py", line 197, in addSpacer
self.containerSizer.AddStretchSpacer(self.weight)
AttributeError: 'BoxSizer' object has no attribute 'AddStretchSpacer'
|
|
|
|
July 6th, 2007, 12:05 AM
|
#2 |
|
Commander Keen
Join Date: Feb 2007
Posts: 9
|
Digging around on my own, because I'm seeing this issue as well, I'm inclined to believe that it has more to do with a change to wxPython instead of to Python itself. Mostly because back in Jan/Feb when I was on my first attempt with getting this software running cleanly from a compile, I was able to get Snowberry to work with no issues. However, I think I may have been using wxPython 2.6. Maybe even 2.4. But downgrading tonight to check that, and digging through the wxPython website, I cannot confirm this one to be the case.
|
|
|
July 6th, 2007, 08:06 AM
|
#3 |
|
Join Date: Apr 2003
Location: UK
Posts: 4,916
|
According to the wxWidgets documentation for ver 2.8.4, wxBoxSizer is derived from wxSizer which implements the wxSizer::AddStretchSpacer(int prop) pure virtual method, which is simply an alternative means of calling wxSizer::Add(0, 0, prop). However, looking at the same documentation, there does not appear to be a version of wxSizer::Add() which accepts three parameters!
|
|
|
July 6th, 2007, 09:42 AM
|
#4 | |
|
Commander Keen
Join Date: Feb 2007
Posts: 9
|
Quote:
Code:
if self.expanding:
self.containerSizer.AddStretchSpacer(self.weight)
else:
self.containerSizer.Add((0, 0), self.weight, self._getLayoutFlags(),
self.border)
pass
|
|
|
|
July 6th, 2007, 09:49 AM
|
#5 |
|
Commander Keen
Join Date: Feb 2007
Posts: 9
|
As a test just after my last post, I commented out everything except this line:
Code:
self.containerSizer.Add((0, 0), self.weight, self._getLayoutFlags(), self.border) |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Version 1.8.5 | skyjake | Doomsday | 41 | January 8th, 2005 01:45 PM |
| Compile Errors | PyRo] | Doomsday | 17 | October 6th, 2004 02:45 PM |