 
       wx.html.HtmlContainerCell¶
  wx.html.HtmlContainerCell¶The wx.html.HtmlContainerCell class is an implementation of a cell that may contain more cells in it.
It is heavily used in the HTML layout algorithm.
See also
 Methods Summary¶
 Methods Summary¶| __init__ | Constructor. | 
| GetAlignHor | Returns container’s horizontal alignment. | 
| GetAlignVer | Returns container’s vertical alignment. | 
| GetBackgroundColour | Returns the background colour of the container or NullColourif no background colour is set. | 
| GetIndent | Returns the indentation. | 
| GetIndentUnits | Returns the units of indentation for ind  where ind  is one of the HTML_INDENT_constants. | 
| InsertCell | Inserts a new cell into the container. | 
| SetAlign | Sets the container’s alignment (both horizontal and vertical) according to the values stored in tag. | 
| SetAlignHor | Sets the container’s horizontal alignment. | 
| SetAlignVer | Sets the container’s vertical alignment. | 
| SetBackgroundColour | Sets the background colour for this container. | 
| SetBorder | Sets the border (frame) colours. | 
| SetIndent | Sets the indentation (free space between borders of container and subcells). | 
| SetMinHeight | Sets minimal height of the container. | 
| SetWidthFloat | Sets floating width adjustment. | 
 Properties Summary¶
 Properties Summary¶| AlignHor | See GetAlignHorandSetAlignHor | 
| AlignVer | See GetAlignVerandSetAlignVer | 
| BackgroundColour | See GetBackgroundColourandSetBackgroundColour | 
 Class API¶
 Class API¶wx.html.HtmlContainerCell(HtmlCell)¶Possible constructors:
HtmlContainerCell(parent)
The HtmlContainerCell class is an implementation of a cell that may contain more cells in it.
__init__(self, parent)¶Constructor.
parent  is pointer to parent container or None.
| Parameters: | parent (wx.html.HtmlContainerCell) – | 
|---|
GetAlignHor(self)¶Returns container’s horizontal alignment.
| Return type: | int | 
|---|
GetAlignVer(self)¶Returns container’s vertical alignment.
| Return type: | int | 
|---|
GetBackgroundColour(self)¶Returns the background colour of the container or  NullColour   if no background colour is set.
| Return type: | Colour | 
|---|
GetIndent(self, ind)¶Returns the indentation.
ind  is one of the HTML_INDENT_  constants.
| Parameters: | ind (int) – | 
|---|---|
| Return type: | int | 
Note
You must call GetIndentUnits   with same ind  parameter in order to correctly interpret the returned integer value. It is NOT always in pixels!
GetIndentUnits(self, ind)¶Returns the units of indentation for ind  where ind  is one of the HTML_INDENT_  constants.
| Parameters: | ind (int) – | 
|---|---|
| Return type: | int | 
InsertCell(self, cell)¶Inserts a new cell into the container.
| Parameters: | cell (wx.html.HtmlCell) – | 
|---|
SetAlign(self, tag)¶Sets the container’s alignment (both horizontal and vertical) according to the values stored in tag.
(Tags  ALIGN   parameter is extracted.) In fact it is only a front-end to  SetAlignHor   and SetAlignVer .
| Parameters: | tag (wx.html.HtmlTag) – | 
|---|
SetAlignHor(self, al)¶Sets the container’s horizontal alignment.
During wx.html.HtmlCell.Layout   each line is aligned according to al  value.
| Parameters: | al (int) – new horizontal alignment. May be one of these values: 
 | 
|---|
SetAlignVer(self, al)¶Sets the container’s vertical alignment.
This is per-line alignment!
| Parameters: | al (int) – new vertical alignment. May be one of these values: 
 | 
|---|
 
SetBackgroundColour(self, clr)¶Sets the background colour for this container.
| Parameters: | clr (wx.Colour) – | 
|---|
SetBorder(self, clr1, clr2, border=1)¶Sets the border (frame) colours.
A border is a rectangle around the container.
| Parameters: | 
|---|
SetIndent(self, i, what, units=HTML_UNITS_PIXELS)¶Sets the indentation (free space between borders of container and subcells).
 
| Parameters: | 
 | 
|---|
SetMinHeight(self, h, align=HTML_ALIGN_TOP)¶Sets minimal height of the container.
When container’s wx.html.HtmlCell.Layout   is called, m_Height is set depending on layout of subcells to the height of area covered by layed-out subcells. Calling this method guarantees you that the height of container is never smaller than h  - even if the subcells cover much smaller area.
| Parameters: | 
 | 
|---|
SetWidthFloat(self, *args, **kw)¶SetWidthFloat (self, w, units)
Sets floating width adjustment.
The normal behaviour of container is that its width is the same as the width of parent container (and thus you can have only one sub-container per line). You can change this by setting the floating width adjustment.
| Parameters: | 
 | 
|---|
SetWidthFloat (self, tag, pixel_scale=1.0)
Sets floating width adjustment.
The normal behaviour of container is that its width is the same as the width of parent container (and thus you can have only one sub-container per line). You can change this by setting the floating width adjustment.
| Parameters: | 
 | 
|---|
AlignHor¶See GetAlignHor and SetAlignHor
AlignVer¶See GetAlignVer and SetAlignVer
BackgroundColour¶