wx.lib.agw.labelbook.LabelContainer¶Base class for LabelBook.
Methods Summary¶__init__ |
Default class constructor. |
CanDoBottomStyle |
Allows the parent to examine the children type. Some implementation |
DrawBackgroundBitmap |
Draws a bitmap as the background of the control. |
DrawLabel |
Draws a label using the specified dc. |
DrawRegularHover |
Draws a rounded rectangle around the current tab. |
DrawWebHover |
Draws a web style hover effect (cursor set to hand & text is underlined). |
GetColour |
Returns a colour for a parameter. |
GetTabAreaWidth |
Returns the width of the tab area. |
InitializeColours |
Initializes the colours map to be used for this control. |
OnEraseBackground |
Handles the wx.EVT_ERASE_BACKGROUND event for LabelContainer. |
OnMouseLeaveWindow |
Handles the wx.EVT_LEAVE_WINDOW event for LabelContainer. |
OnMouseLeftDown |
Handles the wx.EVT_LEFT_DOWN event for LabelContainer. |
OnMouseLeftUp |
Handles the wx.EVT_LEFT_UP event for LabelContainer. |
OnMouseMove |
Handles the wx.EVT_MOTION event for LabelContainer. |
OnPaint |
Handles the wx.EVT_PAINT event for LabelContainer. |
OnSize |
Handles the wx.EVT_SIZE event for LabelContainer. |
Resize |
Actually resizes the tab area. |
SetBackgroundBitmap |
Sets the background bitmap for the control. |
SetColour |
Sets a colour for a parameter. |
SetTabAreaWidth |
Sets the width of the tab area. |
Class API¶LabelContainer(ImageContainerBase)¶Base class for LabelBook.
__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, agwStyle=0, name="LabelContainer")¶Default class constructor.
| Parameters: |
|
|---|
CanDoBottomStyle(self)¶Allows the parent to examine the children type. Some implementation
(such as LabelBook), does not support top/bottom images, only left/right.
DrawBackgroundBitmap(self, dc)¶Draws a bitmap as the background of the control.
| Parameters: | dc – an instance of wx.DC. |
|---|
DrawLabel(self, dc, rect, text, bmp, imgInfo, orientationLeft, imgIdx, selected, hover)¶Draws a label using the specified dc.
| Parameters: |
|
|---|
DrawRegularHover(self, dc, rect)¶Draws a rounded rectangle around the current tab.
| Parameters: |
|
|---|
DrawWebHover(self, dc, caption, xCoord, yCoord, selected)¶Draws a web style hover effect (cursor set to hand & text is underlined).
| Parameters: |
|
|---|
GetColour(self, which)¶Returns a colour for a parameter.
| Parameters: | which – the colour key. |
|---|
See also
SetColour for a list of valid colour keys.
GetTabAreaWidth(self)¶Returns the width of the tab area.
InitializeColours(self)¶Initializes the colours map to be used for this control.
OnEraseBackground(self, event)¶Handles the wx.EVT_ERASE_BACKGROUND event for LabelContainer.
| Parameters: | event – a EraseEvent event to be processed. |
|---|
OnMouseLeaveWindow(self, event)¶Handles the wx.EVT_LEAVE_WINDOW event for LabelContainer.
| Parameters: | event – a MouseEvent event to be processed. |
|---|
OnMouseLeftDown(self, event)¶Handles the wx.EVT_LEFT_DOWN event for LabelContainer.
| Parameters: | event – a MouseEvent event to be processed. |
|---|
OnMouseLeftUp(self, event)¶Handles the wx.EVT_LEFT_UP event for LabelContainer.
| Parameters: | event – a MouseEvent event to be processed. |
|---|
OnMouseMove(self, event)¶Handles the wx.EVT_MOTION event for LabelContainer.
| Parameters: | event – a MouseEvent event to be processed. |
|---|
OnPaint(self, event)¶Handles the wx.EVT_PAINT event for LabelContainer.
| Parameters: | event – a PaintEvent event to be processed. |
|---|
OnSize(self, event)¶Handles the wx.EVT_SIZE event for LabelContainer.
| Parameters: | event – a wx.SizeEvent event to be processed. |
|---|
Resize(self, event)¶Actually resizes the tab area.
| Parameters: | event – an instance of wx.SizeEvent. |
|---|
SetBackgroundBitmap(self, bmp)¶Sets the background bitmap for the control.
| Parameters: | bmp – a valid wx.Bitmap object. |
|---|
SetColour(self, which, colour)¶Sets a colour for a parameter.
| Parameters: |
|
|---|
SetTabAreaWidth(self, width)¶Sets the width of the tab area.
| Parameters: | width – the width of the tab area, in pixels. |
|---|