Another standard tab art provider for wx.aui.AuiNotebook.
wx.aui.AuiSimpleTabArt is derived from wx.aui.AuiTabArt demonstrating how to write a completely new tab art class. It can also be used as alternative to wx.aui.AuiDefaultTabArt.
Clones the art object. |
|
Draws a background on the given area. |
|
Draws a button. |
|
Draws a tab. |
|
Returns the tab control size. |
|
Returns the indent size. |
|
Sets the colour of the selected tab. |
|
Sets the colour of the inactive tabs. |
|
Sets flags. |
|
Sets the font used for calculating measurements. |
|
Sets the normal font for drawing labels. |
|
Sets the font for drawing text for selected UI elements. |
|
Sets sizing information. |
|
See |
wx.aui.
AuiSimpleTabArt
(AuiTabArt)¶Possible constructors:
AuiSimpleTabArt()
Another standard tab art provider for AuiNotebook.
__init__
(self)¶Clone
(self)¶Clones the art object.
DrawBackground
(self, dc, wnd, rect)¶Draws a background on the given area.
DrawButton
(self, dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect)¶Draws a button.
DrawTab
(self, dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect, x_extent)¶Draws a tab.
GetIndentSize
(self)¶Returns the indent size.
int
GetTabSize
(self, dc, wnd, caption, bitmap, active, closeButtonState, xExtent)¶SetActiveColour
(self, colour)¶Sets the colour of the selected tab.
colour (wx.Colour) –
New in version 2.9.2.
SetColour
(self, colour)¶Sets the colour of the inactive tabs.
colour (wx.Colour) –
New in version 2.9.2.
SetFlags
(self, flags)¶Sets flags.
flags (int) –
SetMeasuringFont
(self, font)¶Sets the font used for calculating measurements.
font (wx.Font) –
SetSelectedFont
(self, font)¶Sets the font for drawing text for selected UI elements.
font (wx.Font) –
SetSizingInfo
(self, tab_ctrl_size, tab_count, wnd=None)¶Sets sizing information.
The wnd argument is only present in wxWidgets 3.1.6 and newer and is required, it only has None
default value for compatibility reasons.
ShowDropDown
(self, wnd, items, activeIdx)¶wnd (wx.Window) –
items (AuiNotebookPageArray) –
activeIdx (int) –
int
IndentSize
¶See GetIndentSize