X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18ba9da6b94a34129b6b04494033905a213a0114..389c55270a6ae54788329dde644c12746a326f68:/utils/wxPython/modules/ogl/oglhelpers.cpp?ds=sidebyside diff --git a/utils/wxPython/modules/ogl/oglhelpers.cpp b/utils/wxPython/modules/ogl/oglhelpers.cpp index 6b6e7b17b9..ab2152276a 100644 --- a/utils/wxPython/modules/ogl/oglhelpers.cpp +++ b/utils/wxPython/modules/ogl/oglhelpers.cpp @@ -92,42 +92,10 @@ wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList) { //--------------------------------------------------------------------------- -// Convert a wxList to a Python List -#include -PyObject* wxPy_ConvertList(wxList* list, char* className) { - PyObject* pyList; - PyObject* pyObj; - wxObject* wxObj; - wxNode* node = list->First(); - bool doSave = wxPyRestoreThread(); - pyList = PyList_New(0); - while (node) { - wxObj = node->Data(); -// printf("%s class at %x : %x\n", wxObj->GetClassInfo()->GetClassName(), (void*)wxObj, (void*)((wxShape*)wxObj)->GetParent()); - pyObj = wxPyConstructObject(wxObj, className); - PyList_Append(pyList, pyObj); - node = node->Next(); - } -// for (int x=0; x