phoenix_title wx.aui.AuiSimpleTabArt

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.


class_hierarchy Class Hierarchy

Inheritance diagram for class AuiSimpleTabArt:

method_summary Methods Summary

__init__

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

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.

ShowDropDown


property_summary Properties Summary

IndentSize

See GetIndentSize


api Class API

class wx.aui.AuiSimpleTabArt(AuiTabArt)

Possible constructors:

AuiSimpleTabArt()

Another standard tab art provider for AuiNotebook.


Methods

__init__(self)


Clone(self)

Clones the art object.

Return type:

wx.aui.AuiTabArt



DrawBackground(self, dc, wnd, rect)

Draws a background on the given area.

Parameters:


DrawButton(self, dc, wnd, in_rect, bitmap_id, button_state, orientation, out_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) –



DrawTab(self, dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect, x_extent)

Draws a tab.

Parameters:


GetBestTabCtrlSize(self)

Returns the tab control size.

Parameters:

`` (wx.Size) –

Return type:

int



GetIndentSize(self)

Returns the indent size.

Return type:

int



GetTabSize(self, dc, wnd, caption, bitmap, active, closeButtonState, xExtent)
Parameters:
  • dc (wx.DC) –

  • wnd (wx.Window) –

  • caption (string) –

  • bitmap (wx.Bitmap) –

  • active (bool) –

  • closeButtonState (int) –

  • xExtent (int) –

Return type:

Size



SetActiveColour(self, colour)

Sets the colour of the selected tab.

Parameters:

colour (wx.Colour) –

New in version 2.9.2.



SetColour(self, colour)

Sets the colour of the inactive tabs.

Parameters:

colour (wx.Colour) –

New in version 2.9.2.



SetFlags(self, flags)

Sets flags.

Parameters:

flags (int) –



SetMeasuringFont(self, font)

Sets the font used for calculating measurements.

Parameters:

font (wx.Font) –



SetNormalFont(self, font)

Sets the normal font for drawing labels.

Parameters:

font (wx.Font) –



SetSelectedFont(self, font)

Sets the font for drawing text for selected UI elements.

Parameters:

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.

Parameters:


ShowDropDown(self, wnd, items, activeIdx)
Parameters:
  • wnd (wx.Window) –

  • items (AuiNotebookPageArray) –

  • activeIdx (int) –

Return type:

int


Properties

IndentSize

See GetIndentSize