wx.lib.sized_controls.SizedParent¶Mixin class for some methods used by the Sized* classes.
Class Hierarchy¶
Inheritance diagram for class SizedParent:

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¶SizedParent¶Mixin class for some methods used by the Sized* classes.
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.
string
SetSizerType(self, type, options={})¶Sets the sizer type and automatically re-assign any children to it.
type (string) – sizer type, valid values are “horizontal”, “vertical”, “form”, and “grid”;
options (dict) – dictionary of options depending on type.