X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101dd79ab622d9f274f122953fcf6ad32bef4cbf..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/wxPython/src/sizers.i diff --git a/wxPython/src/sizers.i b/wxPython/src/sizers.i index a43993df98..75c9b24d90 100644 --- a/wxPython/src/sizers.i +++ b/wxPython/src/sizers.i @@ -97,7 +97,7 @@ public: %addmethods { void _setOORInfo(PyObject* _self) { - self->SetClientObject(new wxPyClientData(_self)); + self->SetClientObject(new wxPyOORClientData(_self)); } } @@ -231,6 +231,15 @@ public: wxPoint GetPosition(); wxSize GetMinSize(); + %pragma(python) addtoclass = " + def GetSizeTuple(self): + return self.GetSize().asTuple() + def GetPositionTuple(self): + return self.GetPosition().asTuple() + def GetMinSizeTuple(self): + return self.GetMinSize().asTuple() + " + // void RecalcSizes() = 0; // wxSize CalcMin() = 0;