phoenix_title wx.aui.AuiTabArt

Tab art provider defines all the drawing functions used by wx.aui.AuiNotebook.

This allows the wx.aui.AuiNotebook to have a pluggable look-and-feel.

By default, a wx.aui.AuiNotebook uses an instance of this class called wx.aui.AuiDefaultTabArt which provides bitmap art and a colour scheme that is adapted to the major platforms’ look. You can either derive from that class to alter its behaviour or write a completely new tab art class.

Another example of creating a new wx.aui.AuiNotebook tab bar is wx.aui.AuiSimpleTabArt.

Call wx.aui.AuiNotebook.SetArtProvider to make use of this new tab art.


class_hierarchy Class Hierarchy

Inheritance diagram for class AuiTabArt:

sub_classes Known Subclasses

wx.aui.AuiDefaultTabArt, wx.aui.AuiSimpleTabArt


method_summary Methods Summary

__init__

Constructor.

Clone

Clones the art object.

DrawBackground

Draws a background on the given area.

DrawButton

Draws a button.

DrawTab

Draws a tab.

GetBestTabCtrlSize

Returns the tab control size.

GetIndentSize

Returns the indent size.

GetTabSize

Returns the tab size for the given caption, bitmap and state.

SetActiveColour

Sets the colour of the selected tab.

SetColour

Sets the colour of the inactive tabs.

SetFlags

Sets flags.

SetMeasuringFont

Sets the font used for calculating measurements.

SetNormalFont

Sets the normal font for drawing labels.

SetSelectedFont

Sets the font for drawing text for selected UI elements.

SetSizingInfo

Sets sizing information.


property_summary Properties Summary

IndentSize

See GetIndentSize


api Class API

class wx.aui.AuiTabArt(object)

Possible constructors:

AuiTabArt() -> None

Tab art provider defines all the drawing functions used by AuiNotebook.


Methods

__init__(self)

Constructor.

Return type:

None



Clone(self)

Clones the art object.

Return type:

wx.aui.AuiTabArt



DrawBackground(self, dc : DC, wnd : Window, rect : Rect)

Draws a background on the given area.

Parameters:
Return type:

None



DrawButton(self, dc : DC, wnd : Window, in_rect : Rect, bitmap_id : int, button_state : int, orientation : int, out_rect : Rect)

Draws a button.

Parameters:
  • dc (wx.DC) –

  • wnd (wx.Window) –

  • in_rect (wx.Rect) –

  • bitmap_id (int) –

  • button_state (int) –

  • orientation (int) –

  • out_rect (wx.Rect) –

Return type:

None



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.

Parameters:
Return type:

None



GetBestTabCtrlSize(self, : Window, : AuiNotebookPageArray, : Size)

Returns the tab control size.

Parameters:

`` (wx.Size) –

Return type:

int



GetIndentSize(self)

Returns the indent size.

Return type:

int



GetTabSize(self, dc : DC, wnd : Window, caption : str, bitmap : BitmapBundle, active : bool, close_button_state : int, x_extent : int)

Returns the tab size for the given caption, bitmap and state.

Parameters:
  • dc (wx.DC) –

  • wnd (wx.Window) –

  • caption (string) –

  • bitmap (wx.BitmapBundle) –

  • active (bool) –

  • close_button_state (int) –

  • x_extent (int) –

Return type:

Size



SetActiveColour(self, colour : Colour)

Sets the colour of the selected tab.

Parameters:

colour (wx.Colour) –

Return type:

None

New in version 2.9.2.



SetColour(self, colour : Colour)

Sets the colour of the inactive tabs.

Parameters:

colour (wx.Colour) –

Return type:

None

New in version 2.9.2.



SetFlags(self, flags : int)

Sets flags.

Parameters:

flags (int) –

Return type:

None



SetMeasuringFont(self, font : Font)

Sets the font used for calculating measurements.

Parameters:

font (wx.Font) –

Return type:

None



SetNormalFont(self, font : Font)

Sets the normal font for drawing labels.

Parameters:

font (wx.Font) –

Return type:

None



SetSelectedFont(self, font : Font)

Sets the font for drawing text for selected UI elements.

Parameters:

font (wx.Font) –

Return type:

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.

Parameters:
Return type:

None


Properties

IndentSize

See GetIndentSize