I've been working on porting ScholarsBox <http://raymondyee.net/wiki/ScholarsBox> from Win32 to MacOsX and Linux. The following snippet of code works fine on Win32 wxPython 2.6.0.0 and Linux wxPython 2.6.1.1pre but causes an error on the Mac wxPython 2.6.1.0:
import wx
fileobj = wx.FileDataObject()
urlobj = wx.URLDataObject()
urlobj.Add(fileobj)
The error on the Mac is:
Debug: ../src/common/list.cpp(244): assert "wxAssertFailure" failed: need a key for the object to append
../src/common/list.cpp(244): assert "wxAssertFailure" failed: need a key for the object to append
Now if I modify the program to change urlobj to be wx.DataObjectComposite (from which wx.URLDataObject is dervied), I don't get any errors.
Is this a bug in wxPython or with wxWidgets? Is this the right place to report this problem? If not, please let this wxPython-newbie know the right venue for getting help.
Thanks,
-Raymond Yee