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 Add a child to sizer
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)

Add a child to sizer

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”, “table” and “grid”;
  • options (dict) – dictionary of options depending on type.