Home | Trees | Index | Help |
|
---|
Package wx :: Class SizerItem |
|
object
--+ |Object
--+ | SizerItem
GBSizerItem
The wx.SizerItem class is used to track the position, size and other
attributes of each item managed by a wx.Sizer
. It is not usually
necessary to use this class because the sizer elements can also be
identified by their positions or window or sizer references but
sometimes it may be more convenient to use wx.SizerItem directly.
Also, custom classes derived from wx.PySizer
will probably need to
use the collection of wx.SizerItems held by wx.Sizer when calculating
layout.
See Also:
Method Summary | |
---|---|
SizerItem |
Constructs an empty wx.SizerItem. |
__del__(self)
| |
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. | |
SetInitSize(self,
x,
y)
| |
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. |
Property Summary | |
---|---|
Border : See GetBorder and SetBorder | |
Flag : See GetFlag and SetFlag | |
MinSize : See GetMinSize | |
MinSizeWithBorder : See GetMinSizeWithBorder | |
Position : See GetPosition | |
Proportion : See GetProportion and SetProportion | |
Ratio : See GetRatio and SetRatio | |
Rect : See GetRect | |
Size : See GetSize | |
Sizer : See GetSizer and SetSizer | |
Spacer : See GetSpacer and SetSpacer | |
thisown : The membership flag | |
UserData : See GetUserData and SetUserData | |
Window : See GetWindow and SetWindow |
Method Details |
---|
__init__(self)
|
CalcMin(self)Calculates the minimum desired size for the item, including any space needed by borders.
|
DeleteWindows(self)Destroy the window or the windows in a subsizer, depending on the type of item. |
DetachSizer(self)Enable deleting the SizerItem without destroying the contained sizer. |
GetBorder(self)Get the border value for this item.
|
GetFlag(self)Get the flag value for this item.
|
GetMinSize(self)Get the minimum size needed for the item.
|
GetMinSizeWithBorder(self)Get the minimum size needed for the item with space for the borders added, if needed.
|
GetOption(*args, **kwargs)Please use |
GetPosition(self)Returns the current position of the item, as set in the last Layout.
|
GetProportion(self)Get the proportion value for this item.
|
GetRatio(self)Set the ratio item attribute.
|
GetRect(self)Returns the rectangle that the sizer item should occupy
|
GetSize(self)Get the current size of the item, as set in the last Layout.
|
GetSizer(self)Get the subsizer (if any) that is managed by this sizer item.
|
GetSpacer(self)Get the size of the spacer managed by this sizer item.
|
GetUserData(self)Returns the userData associated with this sizer item, or None if there isn't any.
|
GetWindow(self)Get the window (if any) that is managed by this sizer item.
|
IsShown(self)Is the item to be shown in the layout?
|
IsSizer(self)Is this sizer item a subsizer?
|
IsSpacer(self)Is this sizer item a spacer?
|
IsWindow(self)Is this sizer item a window?
|
SetBorder(self, border)Set the border value for this item.
|
SetDimension(self, pos, size)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.
|
SetFlag(self, flag)Set the flag value for this item.
|
SetOption(*args, **kwargs)Please use |
SetProportion(self, proportion)Set the proportion value for this item.
|
SetRatio(self, ratio)Set the ratio item attribute.
|
SetRatioSize(self, size)Set the ratio item attribute.
|
SetRatioWH(self, width, height)Set the ratio item attribute.
|
SetSizer(self, sizer)Set the subsizer to be managed by this sizer item.
|
SetSpacer(self, size)Set the size of the spacer to be managed by this sizer item.
|
SetUserData(self, userData)Associate a Python object with this sizer item.
|
SetWindow(self, window)Set the window to be managed by this sizer item.
|
Show(self, show)Set the show item attribute, which sizers use to determine if the item is to be made part of the layout or not. If the item is tracking a window then it is shown or hidden as needed.
|
Property Details |
---|
Border |
Flag |
MinSizeSee
|
MinSizeWithBorder
|
PositionSee
|
ProportionSee
|
Ratio |
RectSee
|
SizeSee
|
Sizer |
Spacer |
thisownThe membership flag |
UserDataSee
|
Window |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:12:05 2007 | http://epydoc.sf.net |