X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..40f7145ca55ccf1b197e70acf79bbd4aa5d85145:/wxPython/contrib/ogl/oglcanvas.i diff --git a/wxPython/contrib/ogl/oglcanvas.i b/wxPython/contrib/ogl/oglcanvas.i index 38507e443f..a2dd8f59b8 100644 --- a/wxPython/contrib/ogl/oglcanvas.i +++ b/wxPython/contrib/ogl/oglcanvas.i @@ -59,7 +59,7 @@ public: %addmethods { PyObject* GetShapeList() { wxList* list = self->GetShapeList(); - return wxPy_ConvertList(list, "wxPyShape"); + return wxPy_ConvertShapeList(list, "wxPyShape"); } } @@ -147,6 +147,12 @@ public: void SetDiagram(wxDiagram *diagram); void Snap(double *INOUT, double *INOUT); + + %pragma(python) addtoclass = " + def GetShapeList(self): + return self.GetDiagram().GetShapeList() + " + };