Phoenix Logo

phoenix_title wx.lib.sized_controls.SizedParent

Mixin class for some methods used by the Sized* classes.


class_hierarchy Class Hierarchy

Inheritance diagram for class SizedParent:

method_summary Methods Summary

AddChild This extends the default wx.Window behavior to also add the child
GetSizerType Return the sizer type.
SetSizerType Sets the sizer type and automatically re-assign any children

api 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.

Parameters:child (wx.Window or wx.Sizer) – child (window or another sizer) to be added to sizer.


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.