Home | Trees | Index | Help |
|
---|
Package wx :: Class SizerItem |
|
object
--+ |Object
--+ | SizerItem
GBSizerItem
wx.Sizer
. In normal usage user
code should never need to deal directly with a wx.SizerItem, but
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: wx.Sizer
, wx.GBSizerItem
Method Summary | |
---|---|
SizerItem |
Constructs an empty wx.SizerItem. |
__repr__(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. | |
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. |
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 useGetProportion instead. |
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 useSetProportion instead. |
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.
|
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.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:45 2005 | http://epydoc.sf.net |