]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/oglcanvas.i
use specific linker flags under Mac OS X when linking executables against the
[wxWidgets.git] / wxPython / contrib / ogl / oglcanvas.i
index 38507e443f7d64c355a75e4eeb4106aa265ab04e..a2dd8f59b8d08ce87fe51c7f7e846075d6cc6f8d 100644 (file)
@@ -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()
+    "
+
 };