Don't use deprecated list methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,22 +256,23 @@ PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source) {
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
PyObject* wxPy_ConvertRealPointList(wxListBase* list) {
|
PyObject* wxPy_ConvertRealPointList(wxListBase* listbase) {
|
||||||
PyObject* pyList;
|
wxList* list = (wxList*)listbase;
|
||||||
PyObject* pyObj;
|
PyObject* pyList;
|
||||||
wxObject* wxObj;
|
PyObject* pyObj;
|
||||||
wxNode* node = list->GetFirst();
|
wxObject* wxObj;
|
||||||
|
wxNode* node = list->GetFirst();
|
||||||
|
|
||||||
bool blocked = wxPyBeginBlockThreads();
|
bool blocked = wxPyBeginBlockThreads();
|
||||||
pyList = PyList_New(0);
|
pyList = PyList_New(0);
|
||||||
while (node) {
|
while (node) {
|
||||||
wxObj = node->GetData();
|
wxObj = node->GetData();
|
||||||
pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0);
|
pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0);
|
||||||
PyList_Append(pyList, pyObj);
|
PyList_Append(pyList, pyObj);
|
||||||
node = node->GetNext();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
wxPyEndBlockThreads(blocked);
|
wxPyEndBlockThreads(blocked);
|
||||||
return pyList;
|
return pyList;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user