*.Add problem
Benjamin Bruheim
grolgh at gmail.com
Mon Dec 11 10:41:54 PST 2006
Hi.
I just compiled wxPython 2.7 and 2.8 CVS under GoboLinux and run into
a problem when I was done compiling. I followed the build instructions
in BUILD.html and added just --enable-unicode.
For some reason wx.pth wouldn't work so I instead made a symbolic link
"wx" pointing to "wx-2.8-gtk2-unicode/wx". This at least made me able
to import wx.
I get this traceback from my demo.py:
raceback (most recent call last):
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py",
line 1341, in Notify
self.notify()
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 13903, in Notify
self.result = self.callable(*self.args, **self.kwargs)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1699, in ShowMain
frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1309, in __init__
self.LoadDemo(self.overviewText)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1376, in LoadDemo
self.LoadDemoSource()
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 1394, in LoadDemoSource
self.codePage = DemoCodePanel(self.nb, self)
File "/Files/Compile/Sources/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 572, in __init__
wx.RIGHT | wx.LEFT | wx.ALIGN_CENTER_VERTICAL, 5)
File "/Programs/WxPython/CVS/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 11946, in Add
return _core_.Sizer_Add(*args, **kwargs)
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item
item is a StaticText: <wx._controls.StaticText; proxy of <Swig Object
of type 'wxStaticText *' at 0x8510c08> >
I suspect this is a problem with my build, however I am at loss where
to start figuring out what is wrong... I hope anyone can help?
(cross posted to forum. I will post solution there when this is sorted out)
More information about the wx-users
mailing list