*.Add problem
Robin Dunn
robin at alldunn.com
Mon Dec 11 22:32:07 PST 2006
Benjamin Bruheim wrote:
> 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",
> 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
The first thing you should try is a newer version of the demo. 2.6.1.0
is 1.5 years old, and you are trying to use it with a brand-new version
of wxPython.
>
> item is a StaticText: <wx._controls.StaticText; proxy of <Swig Object
> of type 'wxStaticText *' at 0x8510c08> >
But even so this should not fail. It would seem to indicate that there
is a problem with the data type data that SWIG maintains. (That's what
is used to know if one swig object (a proxy of a C++ object) is an
instance of a particular type.)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list