Hi all,
1. On wxPythonOSX with the latest CVS, when I run the wxListCtrl demo from demo.py, a TypeError occurs when trying to set wxListItem.m_text. Here's the traceback:
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxNotebook.py", line 105, in runTest
testWin = TestNB(nb, -1, log)
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxNotebook.py", line 56, in __init__
win = wxListCtrl.TestListCtrlPanel(self, log)
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxListCtrl.py", line 107, in __init__
self.PopulateList()
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxListCtrl.py", line 149, in PopulateList
info.m_text = "Artist"
TypeError: Type error. Got Artist, expected _p_wxString
2. I'm also getting a traceback when running the wxTextCtrl demo, related to an error with using the command AddMany. It is not properly detecting that wxTextCtrl and/or wxStaticText are derived from wxWindow:
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/Main.py", line 596, in RunDemo
self.window = module.runTest(self, self.nb, self) ###
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxTextCtrl.py", line 148, in runTest
win = TestPanel(nb, log)
File "/Users/kevino/oss/wx25/wxWindows/wxPython/demo/wxTextCtrl.py", line 77, in __init__
sizer.AddMany([ l1, t1, (0,0),
File "/Users/kevino/oss/wx25/wxWindows/wxPython/wx/core.py", line 3751, in AddMany
self.Add(*childinfo)
File "/Users/kevino/oss/wx25/wxWindows/wxPython/wx/core.py", line 3738, in Add
def Add(*args, **kwargs): return _core.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h) expected for item
When I check the type() for the objects, they return:
<class 'wx.controls.StaticText'>
<class 'wx.controls.TextCtrl'>
The traceback comes when adding the TextCtrl, so the problem may be specific to wxTextCtrl. I'm unfortunately not familiar enough with SWIG (especially the new changes) so I haven't been able to track down why these bugs are occurring. Maybe someone else will understand this better than I do. =)
Thanks,
Kevin