X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101dd79ab622d9f274f122953fcf6ad32bef4cbf..a4353f07c6b37712634d4b2d86527b647a08044f:/wxPython/src/msw/sizers.py diff --git a/wxPython/src/msw/sizers.py b/wxPython/src/msw/sizers.py index 2b1292481c..88d328f1d6 100644 --- a/wxPython/src/msw/sizers.py +++ b/wxPython/src/msw/sizers.py @@ -7,6 +7,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from controls import * @@ -180,10 +182,17 @@ class wxSizerPtr(wxObjectPtr): return val def Fit(self, *_args, **_kwargs): val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs) + if val: val = wxSizePtr(val) ; val.thisown = 1 + return val + def FitInside(self, *_args, **_kwargs): + val = apply(sizersc.wxSizer_FitInside,(self,) + _args, _kwargs) return val def SetSizeHints(self, *_args, **_kwargs): val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs) return val + def SetVirtualSizeHints(self, *_args, **_kwargs): + val = apply(sizersc.wxSizer_SetVirtualSizeHints,(self,) + _args, _kwargs) + return val def Clear(self, *_args, **_kwargs): val = apply(sizersc.wxSizer_Clear,(self,) + _args, _kwargs) return val @@ -243,6 +252,14 @@ class wxSizerPtr(wxObjectPtr): else: apply(self.SetItemMinSizeWindow, args) + + def GetSizeTuple(self): + return self.GetSize().asTuple() + def GetPositionTuple(self): + return self.GetPosition().asTuple() + def GetMinSizeTuple(self): + return self.GetMinSize().asTuple() + class wxSizer(wxSizerPtr): def __init__(self,this): self.this = this