Module FoldPanelBar :: Class FoldPanelItem
[show private | hide private]
[frames | no frames]

Type FoldPanelItem

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
                 Panel --+
                         |
                        FoldPanelItem


Method Summary
  __init__(self, parent, id, caption, foldIcons, collapsed, cbstyle)
Default Class Constructor.
  AddSeparator(self, colour, Spacing, leftSpacing, rightSpacing)
Adds a separator item to the list of items on this panel.
  AddWindow(self, window, flags, Spacing, leftSpacing, rightSpacing)
Adds a window item to the list of items on this panel.
  ApplyCaptionStyle(self, cbstyle)
Applies the style defined in cbstyle to the CaptionBar.
  Collapse(self)
  Expand(self)
  GetCaptionLength(self)
Returns height of caption only.
  GetCaptionStyle(self)
Returns the current style of the captionbar in a CaptionBarStyle class.
  GetItemPos(self)
Returns item's position.
  GetPanelLength(self)
Returns size of panel.
  IsExpanded(self)
Returns expanded or collapsed status.
  IsVertical(self)
Returns wether the CaptionBar Has Default Orientation Or Not.
  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.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
CaptionBarStyle EmptyCaptionBarStyle = <FoldPanelBar.CaptionBarStyle ins...

Instance Method Details

__init__(self, parent, id=-1, caption='', foldIcons=<wx._gdi.ImageList; proxy of C++ wxImageList instance at ..., collapsed=False, cbstyle=<FoldPanelBar.CaptionBarStyle instance at 0x009717D8>)
(Constructor)

Default Class Constructor.
Overrides:
wx._windows.Panel.__init__

AddSeparator(self, colour=wx.Colour(0, 0, 0), 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 wxFPB_ALIGN_LEFT for a non sizing window element, and wxFPB_ALIGN_WIDTH for a width alligned 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 wxFPB_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.
Overrides:
wx._core.Window.OnPaint

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

Type:
CaptionBarStyle
Value:
<FoldPanelBar.CaptionBarStyle instance at 0x009717D8>                  

Generated by Epydoc 2.1 on Thu Mar 24 21:26:20 2005 http://epydoc.sf.net