wx.lib.sized_controls.SizedParent¶
Mixin class for some methods used by the Sized*
classes.
Class Hierarchy¶
Known Subclasses¶
wx.lib.sized_controls.SizedPanel
, wx.lib.sized_controls.SizedScrolledPanel
, wx.lib.sized_controls.SizedStaticBox
Methods Summary¶
This extends the default wx.Window behavior to also add the child |
|
Return the sizer type. |
|
Sets the sizer type and automatically re-assign any children |
Class API¶
- class SizedParent¶
Mixin class for some methods used by the
Sized*
classes.
Methods¶
- AddChild(self, child)¶
This extends the default wx.Window behavior to also add the child to its parent’s sizer, if one exists, and set default properties. When an entire UI layout is managed via Sizers, this helps reduce the amount of sizer boilerplate code that needs to be written.
- GetSizerType(self)¶
Return the sizer type.
- Return type:
string
- SetSizerType(self, type, options={})¶
Sets the sizer type and automatically re-assign any children to it.
- Parameters:
type (string) – sizer type, valid values are “horizontal”, “vertical”, “form”, and “grid”;
options (dict) – dictionary of options depending on type.