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:
@@ -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()
|
||||
"
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user