Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module foldpanelbar :: Class FoldPanelItem |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Panel
--+ | FoldPanelItem
This class is a child sibling of the FoldPanelBar
class. It will
contain a CaptionBar
class for receiving of events, and a the
rest of the area can be populated by a wx.Panel
derived class.
Method Summary | |
---|---|
Default Class Constructor. | |
Adds a separator item to the list of items on this panel. | |
Adds a window item to the list of items on this panel. | |
Applies the style defined in cbstyle to the CaptionBar. | |
Collapse(self)
| |
Expand(self)
| |
Returns height of caption only. | |
Returns the current style of the captionbar in a CaptionBarStyle class. | |
Returns item's position. | |
Returns size of panel. | |
Returns expanded or collapsed status. | |
Returns wether the CaptionBar Has Default Orientation Or Not. | |
Handles the EVT_PAINT event in the FoldPanelItem. | |
Handles the EVT_CAPTIONBAR event in the FoldPanelItem. | |
Repositions this FoldPanelBar and reports the length occupied for the next FoldPanelBar in the list. | |
Resizes the panel. |
Property Summary |
---|
Class Variable Summary | |
---|---|
CaptionBarStyle |
EmptyCaptionBarStyle = <wx.lib.foldpanelbar.CaptionBarSt...
|
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
caption='',
foldIcons=None,
collapsed=False,
cbstyle=<wx.lib.foldpanelbar.CaptionBarStyle instance at 0xb490ceec>)
|
AddSeparator(self, colour=..., Spacing=8, leftSpacing=5, rightSpacing=10)Adds a separator item to the list of items on this panel. |
AddWindow(self, window, flags=1, Spacing=8, leftSpacing=2, rightSpacing=2)Adds a window item to the list of items on this panel. The flags are FPB_ALIGN_LEFT for a non sizing window element, and FPB_ALIGN_WIDTH for a width aligned item. The Spacing parameter reserves a number of pixels before the window element, and leftSpacing is an indent. rightSpacing is only relevant when the style FPB_ALIGN_WIDTH is chosen. |
ApplyCaptionStyle(self, cbstyle)Applies the style defined in cbstyle to the CaptionBar. |
GetCaptionLength(self)Returns height of caption only. This is for folding calculation purposes. |
GetCaptionStyle(self)Returns the current style of the captionbar in a CaptionBarStyle class. This can be used to change and set back the changes. |
GetItemPos(self)Returns item's position. |
GetPanelLength(self)Returns size of panel. |
IsExpanded(self)Returns expanded or collapsed status. If the panel is expanded, True is returned. |
IsVertical(self)Returns wether the CaptionBar Has Default Orientation Or Not. Default is vertical. |
OnPaint(self, event)Handles the EVT_PAINT event in the FoldPanelItem. |
OnPressCaption(self, event)Handles the EVT_CAPTIONBAR event in the FoldPanelItem. |
Reposition(self, pos)Repositions this FoldPanelBar and reports the length occupied for the next FoldPanelBar in the list. |
ResizePanel(self)Resizes the panel. |
Class Variable Details |
---|
EmptyCaptionBarStyle
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:57 2007 | http://epydoc.sf.net |