//wxOGLConstraint(int type, wxPyShape *constraining, wxList& constrained);
%addmethods {
wxOGLConstraint(int type, wxPyShape *constraining, PyObject* constrained) {
- wxList* list = wxPy_wxListHelper(constrained, "wxPyShape");
+ wxList* list = wxPy_wxListHelper(constrained, "_wxPyShape_p");
wxOGLConstraint* rv = new wxOGLConstraint(type, constraining, *list);
delete list;
return rv;
wxOGLConstraint * AddConstraint(wxOGLConstraint *constraint);
- // **** Needs a typemap
+
//wxOGLConstraint * AddConstraint(int type,
// wxPyShape *constraining,
// wxList& constrained);
+ %addmethods {
+ wxOGLConstraint * AddConstrainedShapes(int type, wxPyShape *constraining,
+ PyObject* constrained) {
+ wxList* list = wxPy_wxListHelper(constrained, "_wxPyShape_p");
+ wxOGLConstraint* rv = self->AddConstraint(type, constraining, *list);
+ delete list;
+ return rv;
+ }
+ }
%name(AddSimpleConstraint)wxOGLConstraint* AddConstraint(int type,
wxPyShape *constraining,