Home | Trees | Index | Help |
|
---|
Package wx :: Class GBSizerItem |
|
object
--+ |Object
--+ |SizerItem
--+ | GBSizerItem
The wx.GBSizerItem class is used to track the additional data about
items in a wx.GridBagSizer
such as the item's position in the grid
and how many rows or columns it spans.
Method Summary | |
---|---|
GBSizerItem |
Constructs an empty wx.GBSizerItem. |
__repr__(self)
| |
GBPosition |
Get the row and column of the endpoint of this item. |
GridBagSizer |
Get the sizer this item is a member of. |
GBPosition |
Get the grid position of the item |
GetPosTuple(self)
| |
GBSpan |
Get the row and column spanning of the item |
GetSpanTuple(self)
| |
bool |
Returns True if this item and the other item instersect. |
bool |
Returns True if the given pos/span would intersect with this item. |
Set the sizer this item is a member of. | |
bool |
If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one at the new position, then set the new position. |
bool |
If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one with its new spanning size, then set the new spanning. |
Inherited from SizerItem | |
Size |
Calculates the minimum desired size for the item, including any space needed by borders. |
Destroy the window or the windows in a subsizer, depending on the type of item. | |
Enable deleting the SizerItem without destroying the contained sizer. | |
int |
Get the border value for this item. |
int |
Get the flag value for this item. |
Size |
Get the minimum size needed for the item. |
Size |
Get the minimum size needed for the item with space for the borders added, if needed. |
Please use GetProportion instead. | |
Point |
Returns the current position of the item, as set in the last Layout. |
int |
Get the proportion value for this item. |
float |
Set the ratio item attribute. |
Rect |
Returns the rectangle that the sizer item should occupy |
Size |
Get the current size of the item, as set in the last Layout. |
Sizer |
Get the subsizer (if any) that is managed by this sizer item. |
Size |
Get the size of the spacer managed by this sizer item. |
PyObject |
Returns the userData associated with this sizer item, or None if there isn't any. |
Window |
Get the window (if any) that is managed by this sizer item. |
bool |
Is the item to be shown in the layout? |
bool |
Is this sizer item a subsizer? |
bool |
Is this sizer item a spacer? |
bool |
Is this sizer item a window? |
Set the border value for this item. | |
Set the position and size of the space allocated for this item by the sizer, and adjust the position and size of the item (window or subsizer) to be within that space taking alignment and borders into account. | |
Set the flag value for this item. | |
| |
Please use SetProportion instead. | |
Set the proportion value for this item. | |
Set the ratio item attribute. | |
Set the ratio item attribute. | |
Set the ratio item attribute. | |
Set the subsizer to be managed by this sizer item. | |
Set the size of the spacer to be managed by this sizer item. | |
Associate a Python object with this sizer item. | |
Set the window to be managed by this sizer item. | |
Set the show item attribute, which sizers use to determine if the item is to be made part of the layout or not. | |
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)
|
GetEndPos(self)Get the row and column of the endpoint of this item.
|
GetGBSizer(self)Get the sizer this item is a member of.
|
GetPos(self)Get the grid position of the item
|
GetSpan(self)Get the row and column spanning of the item
|
Intersects(self, other)Returns True if this item and the other item instersect.
|
IntersectsPos(self, pos, span)Returns True if the given pos/span would intersect with this item.
|
SetGBSizer(self, sizer)Set the sizer this item is a member of.
|
SetPos(self, pos)If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one at the new position, then set the new position. Returns True if the change is successful and after the next Layout() the item will be moved.
|
SetSpan(self, span)If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one with its new spanning size, then set the new spanning. Returns True if the change is successful and after the next Layout() the item will be resized.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:44:58 2007 | http://epydoc.sf.net |