Home | Trees | Index | Help |
|
---|
Package wx :: Class FlexGridSizer |
|
object
--+ |Object
--+ |Sizer
--+ |GridSizer
--+ | FlexGridSizer
GridBagSizer
A flex grid sizer is a sizer which lays out its children in a
two-dimensional table with all table cells in one row having the same
height and all cells in one column having the same width, but all
rows or all columns are not necessarily the same height or width as in
the wx.GridSizer
.
wx.FlexGridSizer can also size items equally in one direction but
unequally ("flexibly") in the other. If the sizer is only flexible
in one direction (this can be changed using SetFlexibleDirection
), it
needs to be decided how the sizer should grow in the other ("non
flexible") direction in order to fill the available space. The
SetNonFlexibleGrowMode
method serves this purpose.
Method Summary | |
---|---|
FlexGridSizer |
Constructor for a wx.FlexGridSizer. |
Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer. | |
Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer. | |
list |
Returns a list of integers representing the widths of each of the columns in the sizer. |
int |
Returns a value that specifies whether the sizer flexibly resizes its columns, rows, or both (default). |
int |
Returns the value that specifies how the sizer grows in the non-flexible direction if there is one. |
list |
Returns a list of integers representing the heights of each of the rows in the sizer. |
Specifies that column idx is no longer growable. | |
Specifies that row idx is no longer growable. | |
Specifies whether the sizer should flexibly resize its columns, rows, or both. | |
Specifies how the sizer should grow in the non-flexible direction if there is one (so SetFlexibleDirection must have been called
previously). |
Property Summary | |
---|---|
ColWidths : See GetColWidths | |
FlexibleDirection : See GetFlexibleDirection and SetFlexibleDirection | |
NonFlexibleGrowMode : See GetNonFlexibleGrowMode and SetNonFlexibleGrowMode | |
RowHeights : See GetRowHeights | |
thisown : The membership flag |
Method Details |
---|
__init__(self,
rows=1,
cols=0,
vgap=0,
hgap=0)
|
AddGrowableCol(self, idx, proportion=0)Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer. The proportion parameter has the same meaning as the stretch factor for the box sizers except that if all proportions are 0, then all columns are resized equally (instead of not being resized at all).
|
AddGrowableRow(self, idx, proportion=0)Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer. The proportion parameter has the same meaning as the stretch factor for the box sizers except that if all proportions are 0, then all columns are resized equally (instead of not being resized at all).
|
GetColWidths(self)Returns a list of integers representing the widths of each of the columns in the sizer.
|
GetFlexibleDirection(self)Returns a value that specifies whether the sizer flexibly resizes its columns, rows, or both (default).
|
GetNonFlexibleGrowMode(self)Returns the value that specifies how the sizer grows in the non-flexible direction if there is one.
|
GetRowHeights(self)Returns a list of integers representing the heights of each of the rows in the sizer.
|
RemoveGrowableCol(self, idx)Specifies that column idx is no longer growable.
|
RemoveGrowableRow(self, idx)Specifies that row idx is no longer growable.
|
SetFlexibleDirection(self, direction)Specifies whether the sizer should flexibly resize its columns, rows, or both. Argument direction can be one of the following values. Any other value is ignored.
Note that this method does not trigger relayout.
|
SetNonFlexibleGrowMode(self, mode)Specifies how the sizer should grow in the non-flexible direction if
there is one (so
Note that this method does not trigger relayout.
|
Property Details |
---|
ColWidthsSee
|
FlexibleDirectionSee
|
NonFlexibleGrowModeSee
|
RowHeightsSee
|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:50 2007 | http://epydoc.sf.net |