| Home | Trees | Index | Help |
|
|---|
| Package wx :: Class GridSizer |
|
object--+ |Object--+ |Sizer--+ | GridSizer
FlexGridSizerA grid sizer is a sizer which lays out its children in a two-dimensional table with all cells having the same size. In other words, the width of each cell within the grid is the width of the widest item added to the sizer and the height of each grid cell is the height of the tallest item. An optional vertical and/or horizontal gap between items can also be specified (in pixels.)
Items are placed in the cells of the grid in the order they are added,
in row-major order. In other words, the first row is filled first,
then the second, and so on until all items have been added. (If
neccessary, additional rows will be added as items are added.) If you
need to have greater control over the cells that items are placed in
then use the wx.GridBagSizer.
| Method Summary | |
|---|---|
| GridSizer |
Constructor for a wx.GridSizer. |
__repr__(self)
| |
| (rows, cols) |
Calculates how many rows and columns will be in the sizer based on the current number of items and also the rows, cols specified in the constructor. |
| int |
Returns the number of columns in the sizer, as specified in the constructor. |
| int |
Returns the horizontal gap (in pixels) between cells in the sizer. |
| int |
Returns the number of rows in the sizer, as specified in the constructor. |
| int |
Returns the vertical gap (in pixels) between the cells in the sizer. |
Sets the number of columns in the sizer. | |
Sets the horizontal gap (in pixels) between cells in the sizer | |
Sets the number of rows in the sizer. | |
Sets the vertical gap (in pixels) between the cells in the sizer. | |
| Method Details |
|---|
__init__(self,
rows=1,
cols=0,
vgap=0,
hgap=0)
|
CalcRowsCols()Calculates how many rows and columns will be in the sizer based on the current number of items and also the rows, cols specified in the constructor.
|
GetCols(self)Returns the number of columns in the sizer, as specified in the constructor.
|
GetHGap(self)Returns the horizontal gap (in pixels) between cells in the sizer.
|
GetRows(self)Returns the number of rows in the sizer, as specified in the constructor.
|
GetVGap(self)Returns the vertical gap (in pixels) between the cells in the sizer.
|
SetCols(self, cols)Sets the number of columns in the sizer.
|
SetHGap(self, gap)Sets the horizontal gap (in pixels) between cells in the sizer
|
SetRows(self, rows)Sets the number of rows in the sizer.
|
SetVGap(self, gap)Sets the vertical gap (in pixels) between the cells in the sizer.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1.20050511.rpd on Sun Mar 26 10:04:15 2006 | http://epydoc.sf.net |