fixed compile error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -237,19 +237,20 @@ PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source) {
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
PyObject* wxPy_ConvertShapeList(wxListBase* list, const char* className) {
|
PyObject* wxPy_ConvertShapeList(wxListBase* listbase, const char* className) {
|
||||||
|
wxList* list = (wxList*)listbase;
|
||||||
PyObject* pyList;
|
PyObject* pyList;
|
||||||
PyObject* pyObj;
|
PyObject* pyObj;
|
||||||
wxObject* wxObj;
|
wxObject* wxObj;
|
||||||
wxNode* node = list->First();
|
wxNode* node = list->GetFirst();
|
||||||
|
|
||||||
wxPyBeginBlockThreads();
|
wxPyBeginBlockThreads();
|
||||||
pyList = PyList_New(0);
|
pyList = PyList_New(0);
|
||||||
while (node) {
|
while (node) {
|
||||||
wxObj = node->Data();
|
wxObj = node->GetData();
|
||||||
pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj);
|
pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj);
|
||||||
PyList_Append(pyList, pyObj);
|
PyList_Append(pyList, pyObj);
|
||||||
node = node->Next();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
wxPyEndBlockThreads();
|
wxPyEndBlockThreads();
|
||||||
return pyList;
|
return pyList;
|
||||||
|
Reference in New Issue
Block a user