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

Class FoldWindowItem


Method Summary
  __init__(self, parent, window, **kw)
Default Class Constructor...
  GetLeftSpacing(self)
  GetLineColour(self)
  GetLineLength(self)
  GetLineY(self)
  GetRightSpacing(self)
  GetSpacing(self)
  GetType(self)
  GetWindowLength(self, vertical)
Returns space needed by the window if type is FoldWindowItem "WINDOW" and returns the total size plus the extra spacing.
  ResizeItem(self, size, vertical)
Resizes the element, whatever it is.

Method Details

__init__(self, parent, window=None, **kw)
(Constructor)

Default Class Constructor

Initialize with:

    Type = "WINDOW", flags = wxFPB_ALIGN_WIDTH,
    Spacing = wxFPB_DEFAULT_SPACING,
    leftSpacing = wxFPB_DEFAULT_LEFTSPACING,
    rightSpacing = wxFPB_DEFAULT_RIGHTSPACING

    or:

    Type = "SEPARATOR"
    y, lineColor = wx.BLACK,
    flags = wxFPB_ALIGN_WIDTH,
    Spacing = wxFPB_DEFAULT_SPACING,
    leftSpacing = wxFPB_DEFAULT_LEFTLINESPACING,
    rightSpacing = wxFPB_DEFAULT_RIGHTLINESPACING

GetWindowLength(self, vertical=True)

Returns space needed by the window if type is FoldWindowItem "WINDOW" and returns the total size plus the extra spacing.

ResizeItem(self, size, vertical=True)

Resizes the element, whatever it is.

A separator or line will be always aligned by width or height depending on orientation of the whole panel.

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