]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/sizers.i
wxUniversal fixes:
[wxWidgets.git] / wxPython / src / sizers.i
index a43993df98892c41f09336201582aa80ad3f083f..75c9b24d901dac984ff9b43ee2615e9bb3605e14 100644 (file)
@@ -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;