+ Sets the wx.SHAPED flag.
+ """
+ return _core_.SizerFlags_Shaped(*args, **kwargs)
+
+ def FixedMinSize(*args, **kwargs):
+ """
+ FixedMinSize(self) -> SizerFlags
+
+ Sets the wx.FIXED_MINSIZE flag.
+ """
+ return _core_.SizerFlags_FixedMinSize(*args, **kwargs)
+
+ def Border(*args, **kwargs):
+ """
+ Border(self, int direction=ALL, int borderInPixels=-1) -> SizerFlags
+
+ Sets the border of the item in the direction(s) or sides given by the
+ direction parameter. If the borderInPixels value is not given then
+ the default border size (see `GetDefaultBorder`) will be used.
+ """
+ return _core_.SizerFlags_Border(*args, **kwargs)
+
+ def DoubleBorder(*args, **kwargs):
+ """
+ DoubleBorder(self, int direction=ALL) -> SizerFlags
+
+ Sets the border in the given direction to twice the default border
+ size.
+ """
+ return _core_.SizerFlags_DoubleBorder(*args, **kwargs)
+
+ def TripleBorder(*args, **kwargs):
+ """
+ TripleBorder(self, int direction=ALL) -> SizerFlags
+
+ Sets the border in the given direction to three times the default
+ border size.
+ """
+ return _core_.SizerFlags_TripleBorder(*args, **kwargs)
+
+ def HorzBorder(*args, **kwargs):
+ """
+ HorzBorder(self) -> SizerFlags
+
+ Sets the left and right borders to the default border size.
+ """
+ return _core_.SizerFlags_HorzBorder(*args, **kwargs)
+
+ def DoubleHorzBorder(*args, **kwargs):
+ """
+ DoubleHorzBorder(self) -> SizerFlags
+
+ Sets the left and right borders to twice the default border size.
+ """
+ return _core_.SizerFlags_DoubleHorzBorder(*args, **kwargs)
+
+ def GetDefaultBorder(*args, **kwargs):
+ """
+ GetDefaultBorder() -> int
+
+ Returns the default border size used by the other border methods
+ """
+ return _core_.SizerFlags_GetDefaultBorder(*args, **kwargs)
+
+ GetDefaultBorder = staticmethod(GetDefaultBorder)
+ def GetProportion(*args, **kwargs):
+ """
+ GetProportion(self) -> int
+
+ Returns the proportion value to be used in the sizer item.
+ """
+ return _core_.SizerFlags_GetProportion(*args, **kwargs)
+
+ def GetFlags(*args, **kwargs):
+ """
+ GetFlags(self) -> int
+
+ Returns the flags value to be used in the sizer item.
+ """
+ return _core_.SizerFlags_GetFlags(*args, **kwargs)
+
+ def GetBorderInPixels(*args, **kwargs):
+ """
+ GetBorderInPixels(self) -> int
+
+ Returns the border value in pixels to be used in the sizer item.
+ """
+ return _core_.SizerFlags_GetBorderInPixels(*args, **kwargs)
+
+_core_.SizerFlags_swigregister(SizerFlags)
+
+def SizerFlags_GetDefaultBorder(*args):
+ """
+ SizerFlags_GetDefaultBorder() -> int
+
+ Returns the default border size used by the other border methods
+ """
+ return _core_.SizerFlags_GetDefaultBorder(*args)
+
+class SizerItem(Object):
+ """
+ The wx.SizerItem class is used to track the position, size and other
+ attributes of each item managed by a `wx.Sizer`. It is not usually
+ necessary to use this class because the sizer elements can also be
+ identified by their positions or window or sizer references but
+ sometimes it may be more convenient to use wx.SizerItem directly.
+ Also, custom classes derived from `wx.PySizer` will probably need to
+ use the collection of wx.SizerItems held by wx.Sizer when calculating
+ layout.
+
+ :see: `wx.Sizer`, `wx.GBSizerItem`
+ """
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(self) -> SizerItem
+
+ Constructs an empty wx.SizerItem. Either a window, sizer or spacer
+ size will need to be set before this item can be used in a Sizer.
+
+ You will probably never need to create a wx.SizerItem directly as they
+ are created automatically when the sizer's Add, Insert or Prepend
+ methods are called.
+
+ :see: `wx.SizerItemSpacer`, `wx.SizerItemWindow`, `wx.SizerItemSizer`
+ """
+ _core_.SizerItem_swiginit(self,_core_.new_SizerItem(*args, **kwargs))
+ __swig_destroy__ = _core_.delete_SizerItem
+ __del__ = lambda self : None;
+ def DeleteWindows(*args, **kwargs):
+ """
+ DeleteWindows(self)
+
+ Destroy the window or the windows in a subsizer, depending on the type
+ of item.
+ """
+ return _core_.SizerItem_DeleteWindows(*args, **kwargs)
+
+ def DetachSizer(*args, **kwargs):
+ """
+ DetachSizer(self)
+
+ Enable deleting the SizerItem without destroying the contained sizer.
+ """
+ return _core_.SizerItem_DetachSizer(*args, **kwargs)
+
+ def GetSize(*args, **kwargs):
+ """
+ GetSize(self) -> Size
+
+ Get the current size of the item, as set in the last Layout.
+ """
+ return _core_.SizerItem_GetSize(*args, **kwargs)
+
+ def CalcMin(*args, **kwargs):
+ """
+ CalcMin(self) -> Size
+
+ Calculates the minimum desired size for the item, including any space
+ needed by borders.
+ """
+ return _core_.SizerItem_CalcMin(*args, **kwargs)
+
+ def SetDimension(*args, **kwargs):
+ """
+ SetDimension(self, Point pos, Size size)
+
+ Set the position and size of the space allocated for this item by the
+ sizer, and adjust the position and size of the item (window or
+ subsizer) to be within that space taking alignment and borders into
+ account.
+ """
+ return _core_.SizerItem_SetDimension(*args, **kwargs)
+
+ def GetMinSize(*args, **kwargs):
+ """
+ GetMinSize(self) -> Size
+
+ Get the minimum size needed for the item.
+ """
+ return _core_.SizerItem_GetMinSize(*args, **kwargs)
+
+ def GetMinSizeWithBorder(*args, **kwargs):
+ """
+ GetMinSizeWithBorder(self) -> Size
+
+ Get the minimum size needed for the item with space for the borders
+ added, if needed.
+ """
+ return _core_.SizerItem_GetMinSizeWithBorder(*args, **kwargs)
+
+ def SetInitSize(*args, **kwargs):
+ """SetInitSize(self, int x, int y)"""
+ return _core_.SizerItem_SetInitSize(*args, **kwargs)
+
+ def SetRatioWH(*args, **kwargs):
+ """
+ SetRatioWH(self, int width, int height)
+
+ Set the ratio item attribute.
+ """
+ return _core_.SizerItem_SetRatioWH(*args, **kwargs)
+
+ def SetRatioSize(*args, **kwargs):
+ """
+ SetRatioSize(self, Size size)
+
+ Set the ratio item attribute.
+ """
+ return _core_.SizerItem_SetRatioSize(*args, **kwargs)
+
+ def SetRatio(*args, **kwargs):
+ """
+ SetRatio(self, float ratio)
+
+ Set the ratio item attribute.
+ """
+ return _core_.SizerItem_SetRatio(*args, **kwargs)
+
+ def GetRatio(*args, **kwargs):
+ """
+ GetRatio(self) -> float
+
+ Set the ratio item attribute.
+ """
+ return _core_.SizerItem_GetRatio(*args, **kwargs)
+
+ def GetRect(*args, **kwargs):
+ """
+ GetRect(self) -> Rect
+
+ Returns the rectangle that the sizer item should occupy
+ """
+ return _core_.SizerItem_GetRect(*args, **kwargs)
+
+ def IsWindow(*args, **kwargs):
+ """
+ IsWindow(self) -> bool
+
+ Is this sizer item a window?
+ """
+ return _core_.SizerItem_IsWindow(*args, **kwargs)
+
+ def IsSizer(*args, **kwargs):
+ """
+ IsSizer(self) -> bool
+
+ Is this sizer item a subsizer?
+ """
+ return _core_.SizerItem_IsSizer(*args, **kwargs)
+
+ def IsSpacer(*args, **kwargs):
+ """
+ IsSpacer(self) -> bool
+
+ Is this sizer item a spacer?
+ """
+ return _core_.SizerItem_IsSpacer(*args, **kwargs)
+
+ def SetProportion(*args, **kwargs):
+ """
+ SetProportion(self, int proportion)
+
+ Set the proportion value for this item.
+ """
+ return _core_.SizerItem_SetProportion(*args, **kwargs)
+
+ def GetProportion(*args, **kwargs):
+ """
+ GetProportion(self) -> int
+
+ Get the proportion value for this item.
+ """
+ return _core_.SizerItem_GetProportion(*args, **kwargs)
+
+ SetOption = wx._deprecated(SetProportion, "Please use `SetProportion` instead.")
+ GetOption = wx._deprecated(GetProportion, "Please use `GetProportion` instead.")
+ def SetFlag(*args, **kwargs):
+ """
+ SetFlag(self, int flag)
+
+ Set the flag value for this item.
+ """
+ return _core_.SizerItem_SetFlag(*args, **kwargs)
+
+ def GetFlag(*args, **kwargs):
+ """
+ GetFlag(self) -> int
+
+ Get the flag value for this item.
+ """
+ return _core_.SizerItem_GetFlag(*args, **kwargs)
+
+ def SetBorder(*args, **kwargs):
+ """
+ SetBorder(self, int border)
+
+ Set the border value for this item.
+ """
+ return _core_.SizerItem_SetBorder(*args, **kwargs)
+
+ def GetBorder(*args, **kwargs):
+ """
+ GetBorder(self) -> int
+
+ Get the border value for this item.
+ """
+ return _core_.SizerItem_GetBorder(*args, **kwargs)
+
+ def GetWindow(*args, **kwargs):
+ """
+ GetWindow(self) -> Window
+
+ Get the window (if any) that is managed by this sizer item.
+ """
+ return _core_.SizerItem_GetWindow(*args, **kwargs)
+
+ def GetSizer(*args, **kwargs):
+ """
+ GetSizer(self) -> Sizer
+
+ Get the subsizer (if any) that is managed by this sizer item.
+ """
+ return _core_.SizerItem_GetSizer(*args, **kwargs)
+
+ def GetSpacer(*args, **kwargs):
+ """
+ GetSpacer(self) -> Size
+
+ Get the size of the spacer managed by this sizer item.
+ """
+ return _core_.SizerItem_GetSpacer(*args, **kwargs)
+
+ def SetWindow(*args, **kwargs):
+ """
+ SetWindow(self, Window window)
+
+ Set the window to be managed by this sizer item.
+ """
+ return _core_.SizerItem_SetWindow(*args, **kwargs)
+
+ def SetSizer(*args, **kwargs):
+ """
+ SetSizer(self, Sizer sizer)
+
+ Set the subsizer to be managed by this sizer item.
+ """
+ return _core_.SizerItem_SetSizer(*args, **kwargs)
+
+ def SetSpacer(*args, **kwargs):
+ """
+ SetSpacer(self, Size size)
+
+ Set the size of the spacer to be managed by this sizer item.
+ """
+ return _core_.SizerItem_SetSpacer(*args, **kwargs)
+
+ SetWindow = wx._deprecated(SetWindow, "Use `AssignWindow` instead.")
+ SetSizer = wx._deprecated(SetSizer, "Use `AssignSizer` instead.")
+ SetSpacer = wx._deprecated(SetSpacer, "Use `AssignSpacer` instead.")
+
+ def AssignWindow(*args, **kwargs):
+ """
+ AssignWindow(self, Window window)
+
+ Set the window to be managed by this sizer item.
+ """
+ return _core_.SizerItem_AssignWindow(*args, **kwargs)
+
+ def AssignSizer(*args, **kwargs):
+ """
+ AssignSizer(self, Sizer sizer)
+
+ Set the subsizer to be managed by this sizer item.
+ """
+ return _core_.SizerItem_AssignSizer(*args, **kwargs)
+
+ def AssignSpacer(*args, **kwargs):
+ """
+ AssignSpacer(self, Size size)
+
+ Set the size of the spacer to be managed by this sizer item.
+ """
+ return _core_.SizerItem_AssignSpacer(*args, **kwargs)
+
+ def Show(*args, **kwargs):
+ """
+ Show(self, bool show)
+
+ Set the show item attribute, which sizers use to determine if the item
+ is to be made part of the layout or not. If the item is tracking a
+ window then it is shown or hidden as needed.
+ """