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. |
__repr__(self)
| |
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). | |
Inherited from GridSizer | |
(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. | |
Inherited from Sizer | |
wx.SizerItem |
Appends a child item to the sizer. |
Adds a wx.SizerItem to the sizer. | |
AddMany is a convenience method for adding several items to a sizer at one time. | |
Compatibility alias for Add . | |
Compatibility alias for Add . | |
Compatibility alias for Add . | |
Size |
This method is where the sizer will do the actual calculation of its children's minimal sizes. |
Clear all items from the sizer, optionally destroying the window items as well. | |
Destroy all windows managed by the sizer. | |
bool |
Detaches an item from the sizer without destroying it. |
Size |
Tell the sizer to resize the window to match the sizer's minimal size. |
Tell the sizer to resize the virtual size of the window to match the sizer's minimal size. | |
list |
Returns a list of all the wx.SizerItem objects managed by the sizer. |
wx.SizerItem |
Returns the wx.SizerItem which holds the item given. |
Size |
Returns the minimal size of the sizer. |
| |
Point |
Returns the current position of the sizer's managed space. |
| |
Size |
Returns the current size of the space managed by the sizer. |
| |
A convenience method for Show (item, False, recursive). | |
wx.SizerItem |
Inserts a new item into the list of items managed by this sizer before the item at index before. |
Inserts a wx.SizerItem to the sizer at the position given by index. | |
Compatibility alias for Insert . | |
Compatibility alias for Insert . | |
Compatibility alias for Insert . | |
Determines if the item is currently shown. | |
This method will force the recalculation and layout of the items controlled by the sizer using the current space allocated to the sizer. | |
wx.SizerItem |
Adds a new item to the begining of the list of sizer items managed by this sizer. |
Prepends a wx.SizerItem to the sizer. | |
Compatibility alias for Prepend . | |
Compatibility alias for Prepend . | |
Compatibility alias for Prepend . | |
Using the sizes calculated by CalcMin reposition and resize all the
items managed by this sizer. | |
bool |
Removes an item from the sizer and destroys it. |
Compatibility alias for Remove . | |
Compatibility alias for Remove . | |
Compatibility alias for Remove . | |
Call this to force the sizer to take the given dimension and thus force the items owned by the sizer to resize themselves according to the rules defined by the parameter in the Add , Insert or Prepend
methods. | |
Sets the minimum size that will be allocated for an item in the sizer. | |
Call this to give the sizer a minimal size. | |
Tell the sizer to set (and Fit ) the minimal size of the window to
match the sizer's minimal size. | |
Tell the sizer to set the minimal size of the window virtual area to match the sizer's minimal size. | |
bool |
Shows or hides an item managed by the sizer. |
Recursively call wx.SizerItem.Show on all sizer items. | |
Inherited from Object | |
Deletes the C++ object this Python object is a proxy for. | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
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.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 17:04:21 2007 | http://epydoc.sf.net |