X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4acff284f9516e2a4f0fcfa7bcfa3f497b8005cc..85045dd09eb173f6814c9cc4dae6f259837a2b21:/wxPython/src/sizers.i?ds=sidebyside diff --git a/wxPython/src/sizers.i b/wxPython/src/sizers.i index 1e65076ff9..75ff5e3969 100644 --- a/wxPython/src/sizers.i +++ b/wxPython/src/sizers.i @@ -231,13 +231,25 @@ 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; void Layout(); - void Fit( wxWindow *window ); + wxSize Fit( wxWindow *window ); + void FitInside( wxWindow *window ); + void SetSizeHints( wxWindow *window ); + void SetVirtualSizeHints( wxWindow *window ); void Clear( bool delete_windows=FALSE ); void DeleteWindows();