Fixed GetShapeList and similar methods to use OOR.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-04-11 23:12:02 +00:00
parent a22d737782
commit c893f25d86
12 changed files with 59 additions and 10 deletions

View 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()
"
};