Package wx :: Module _core :: Class BoxSizer
[show private | hide private]
[frames | no frames]

Type BoxSizer

object --+        
         |        
    Object --+    
             |    
         Sizer --+
                 |
                BoxSizer

Known Subclasses:
CExoLocStringControl, HAKListControl, SoundControl, VarControl, VarListControl

The basic idea behind a box sizer is that windows will most often be laid out in rather simple basic geometry, typically in a row or a column or nested hierarchies of either. A wx.BoxSizer will lay out its items in a simple row or column, depending on the orientation parameter passed to the constructor.
Method Summary
  __init__(self, *args, **kwargs)
__init__(self, int orient=HORIZONTAL) -> BoxSizer
  __repr__(self)
int GetOrientation(self)
Returns the current orientation of the sizer.
  SetOrientation(*args, **kwargs)
SetOrientation(self, int orient)
    Inherited from Sizer
  _SetItemMinSize(*args, **kwargs)
_SetItemMinSize(self, PyObject item, Size size)
  _setOORInfo(*args, **kwargs)
_setOORInfo(self, PyObject _self)
  Add(*args, **kwargs)
Add(self, item, int proportion=0, int flag=0, int border=0, PyObject userData=None) -> wx.SizerItem Appends a child item to the sizer.
  AddItem(*args, **kwargs)
AddItem(self, SizerItem item)
  AddMany(self, items)
AddMany is a convenience method for adding several items to a sizer at one time.
  AddSizer(self, *args, **kw)
Compatibility alias for `Add`.
  AddSpacer(self, *args, **kw)
Compatibility alias for `Add`.
  AddWindow(self, *args, **kw)
Compatibility alias for `Add`.
Size CalcMin(self)
This method is where the sizer will do the actual calculation of its children's minimal sizes.
  Clear(*args, **kwargs)
Clear(self, bool deleteWindows=False)
  DeleteWindows(self)
Destroy all windows managed by the sizer.
bool Detach(self, item)
Detaches an item from the sizer without destroying it.
  Fit(*args, **kwargs)
Fit(self, Window window) -> Size
  FitInside(*args, **kwargs)
FitInside(self, Window window)
list GetChildren(self)
Returns a list of all the `wx.SizerItem` objects managed by the sizer.
wx.SizerItem GetItem(self, item)
Returns the `wx.SizerItem` which holds the *item* given.
Size GetMinSize(self)
Returns the minimal size of the sizer.
  GetMinSizeTuple(self)
Point GetPosition(self)
Returns the current position of the sizer's managed space.
  GetPositionTuple(self)
Size GetSize(self)
Returns the current size of the space managed by the sizer.
  GetSizeTuple(self)
  Hide(self, item, recursive)
A convenience method for `Show` (item, False, recursive).
  Insert(*args, **kwargs)
Insert(self, int before, item, int proportion=0, int flag=0, int border=0, PyObject userData=None) -> wx.SizerItem Inserts a new item into the list of items managed by this sizer before the item at index *before*.
  InsertItem(*args, **kwargs)
InsertItem(self, int index, SizerItem item)
  InsertSizer(self, *args, **kw)
Compatibility alias for `Insert`.
  InsertSpacer(self, *args, **kw)
Compatibility alias for `Insert`.
  InsertWindow(self, *args, **kw)
Compatibility alias for `Insert`.
  IsShown(self, item)
Determines if the item is currently shown.
  Layout(self)
This method will force the recalculation and layout of the items controlled by the sizer using the current space allocated to the sizer.
  Prepend(*args, **kwargs)
Prepend(self, item, int proportion=0, int flag=0, int border=0, PyObject userData=None) -> wx.SizerItem Adds a new item to the begining of the list of sizer items managed by this sizer.
  PrependItem(*args, **kwargs)
PrependItem(self, SizerItem item)
  PrependSizer(self, *args, **kw)
Compatibility alias for `Prepend`.
  PrependSpacer(self, *args, **kw)
Compatibility alias for `Prepend`.
  PrependWindow(self, *args, **kw)
Compatibility alias for `Prepend`.
  RecalcSizes(self)
Using the sizes calculated by `CalcMin` reposition and resize all the items managed by this sizer.
bool Remove(self, item)
Removes an item from the sizer and destroys it.
  RemovePos(self, *args, **kw)
Compatibility alias for `Remove`.
  RemoveSizer(self, *args, **kw)
Compatibility alias for `Remove`.
  RemoveWindow(self, *args, **kw)
Compatibility alias for `Remove`.
  SetDimension(*args, **kwargs)
SetDimension(self, int x, int y, int width, int height)
  SetItemMinSize(self, item, *args)
SetItemMinSize(self, item, Size size)
  SetMinSize(*args, **kwargs)
SetMinSize(self, Size size)
  SetSizeHints(*args, **kwargs)
SetSizeHints(self, Window window)
  SetVirtualSizeHints(*args, **kwargs)
SetVirtualSizeHints(self, Window window)
  Show(*args, **kwargs)
Show(self, item, bool show=True, bool recursive=false) -> bool
  ShowItems(*args, **kwargs)
ShowItems(self, bool show)
    Inherited from Object
  Destroy(self)
Deletes the C++ object this Python object is a proxy for.
String GetClassName(self)
Returns the class name of the C++ class using wxRTTI.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Method Details

__init__(self, *args, **kwargs)
(Constructor)

__init__(self, int orient=HORIZONTAL) -> BoxSizer

Constructor for a wx.BoxSizer. *orient* may be one of ``wx.VERTICAL`` or ``wx.HORIZONTAL`` for creating either a column sizer or a row sizer.
Overrides:
wx._core.Sizer.__init__

__repr__(self)
(Representation operator)

Overrides:
wx._core.Sizer.__repr__

GetOrientation(self)

Returns the current orientation of the sizer.
Returns:
int

SetOrientation(*args, **kwargs)

SetOrientation(self, int orient)

Resets the orientation of the sizer.