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() -> None
Another standard tab art provider for AuiNotebook.
__init__
(self)¶None
Clone
(self)¶Clones the art object.
DrawBackground
(self, dc : DC, wnd : Window, rect : Rect)¶Draws a background on the given area.
DrawButton
(self, dc : DC, wnd : Window, in_rect : Rect, bitmap_id : int, button_state : int, orientation : int, out_rect : Rect)¶Draws a button.
DrawTab
(self, dc : DC, wnd : Window, page : AuiNotebookPage, rect : Rect, close_button_state : int, out_tab_rect : Rect, out_button_rect : Rect, x_extent : int)¶Draws a tab.
GetBestTabCtrlSize
(self, : Window, : AuiNotebookPageArray, : Size)¶Returns the tab control size.
`` (wx.Size) –
int
GetIndentSize
(self)¶Returns the indent size.
int
GetTabSize
(self, dc : DC, wnd : Window, caption : str, bitmap : Bitmap, active : bool, closeButtonState : int, xExtent : int)¶SetActiveColour
(self, colour : Colour)¶Sets the colour of the selected tab.
colour (wx.Colour) –
None
New in version 2.9.2.
SetColour
(self, colour : Colour)¶Sets the colour of the inactive tabs.
colour (wx.Colour) –
None
New in version 2.9.2.
SetFlags
(self, flags : int)¶Sets flags.
flags (int) –
None
SetMeasuringFont
(self, font : Font)¶Sets the font used for calculating measurements.
font (wx.Font) –
None
SetNormalFont
(self, font : Font)¶Sets the normal font for drawing labels.
font (wx.Font) –
None
SetSelectedFont
(self, font : Font)¶Sets the font for drawing text for selected UI elements.
font (wx.Font) –
None
SetSizingInfo
(self, tab_ctrl_size : Size, tab_count : int, wnd: Optional[Window]=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 : Window, items : AuiNotebookPageArray, activeIdx : int)¶wnd (wx.Window) –
items (AuiNotebookPageArray) –
activeIdx (int) –
int
IndentSize
¶See GetIndentSize