.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.aui.AuiTabContainer:
==========================================================================================================================================
|phoenix_title| **wx.aui.AuiTabContainer**
==========================================================================================================================================
:ref:`wx.aui.AuiTabContainer` is a class which contains information about each tab.
It also can render an entire tab control to a specified DC. It's not a window class itself, because this code will be used by the :ref:`wx.aui.AuiNotebook`, where it is disadvantageous to have separate windows for each tab control in the case of "docked tabs".
A derived class, AuiTabCtrl, is an actual :ref:`wx.Window` - derived window which can be used as a tab control in the normal sense.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
AuiTabContainer:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.aui.AuiTabContainer.__init__` Default constructor.
:meth:`~wx.aui.AuiTabContainer.AddButton`
:meth:`~wx.aui.AuiTabContainer.AddPage`
:meth:`~wx.aui.AuiTabContainer.ButtonHitTest`
:meth:`~wx.aui.AuiTabContainer.DoShowHide`
:meth:`~wx.aui.AuiTabContainer.GetActivePage`
:meth:`~wx.aui.AuiTabContainer.GetArtProvider`
:meth:`~wx.aui.AuiTabContainer.GetFlags`
:meth:`~wx.aui.AuiTabContainer.GetIdxFromWindow`
:meth:`~wx.aui.AuiTabContainer.GetPage`
:meth:`~wx.aui.AuiTabContainer.GetPageCount`
:meth:`~wx.aui.AuiTabContainer.GetPages`
:meth:`~wx.aui.AuiTabContainer.GetTabOffset`
:meth:`~wx.aui.AuiTabContainer.GetWindowFromIdx`
:meth:`~wx.aui.AuiTabContainer.InsertPage`
:meth:`~wx.aui.AuiTabContainer.IsTabVisible`
:meth:`~wx.aui.AuiTabContainer.MakeTabVisible`
:meth:`~wx.aui.AuiTabContainer.MovePage`
:meth:`~wx.aui.AuiTabContainer.RemoveButton`
:meth:`~wx.aui.AuiTabContainer.RemovePage`
:meth:`~wx.aui.AuiTabContainer.SetActiveColour`
:meth:`~wx.aui.AuiTabContainer.SetActivePage`
:meth:`~wx.aui.AuiTabContainer.SetArtProvider`
:meth:`~wx.aui.AuiTabContainer.SetColour`
:meth:`~wx.aui.AuiTabContainer.SetFlags`
:meth:`~wx.aui.AuiTabContainer.SetMeasuringFont`
:meth:`~wx.aui.AuiTabContainer.SetNoneActive`
:meth:`~wx.aui.AuiTabContainer.SetNormalFont`
:meth:`~wx.aui.AuiTabContainer.SetRect`
:meth:`~wx.aui.AuiTabContainer.SetSelectedFont`
:meth:`~wx.aui.AuiTabContainer.SetTabOffset`
:meth:`~wx.aui.AuiTabContainer.TabHitTest`
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.aui.AuiTabContainer.ActivePage` See :meth:`~wx.aui.AuiTabContainer.GetActivePage` and :meth:`~wx.aui.AuiTabContainer.SetActivePage`
:attr:`~wx.aui.AuiTabContainer.ArtProvider` See :meth:`~wx.aui.AuiTabContainer.GetArtProvider` and :meth:`~wx.aui.AuiTabContainer.SetArtProvider`
:attr:`~wx.aui.AuiTabContainer.Flags` See :meth:`~wx.aui.AuiTabContainer.GetFlags` and :meth:`~wx.aui.AuiTabContainer.SetFlags`
:attr:`~wx.aui.AuiTabContainer.PageCount` See :meth:`~wx.aui.AuiTabContainer.GetPageCount`
:attr:`~wx.aui.AuiTabContainer.Pages` See :meth:`~wx.aui.AuiTabContainer.GetPages`
:attr:`~wx.aui.AuiTabContainer.TabOffset` See :meth:`~wx.aui.AuiTabContainer.GetTabOffset` and :meth:`~wx.aui.AuiTabContainer.SetTabOffset`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.aui.AuiTabContainer(object)
**Possible constructors**::
AuiTabContainer() -> None
AuiTabContainer is a class which contains information about each
tab.
.. method:: __init__(self)
Default constructor.
:rtype: `None`
.. method:: AddButton(self, id : int, location : int, normalBitmap: BitmapBundle=BitmapBundle(), disabledBitmap: BitmapBundle=BitmapBundle())
:param `id`:
:type `id`: int
:param `location`:
:type `location`: int
:param `normalBitmap`:
:type `normalBitmap`: wx.BitmapBundle
:param `disabledBitmap`:
:type `disabledBitmap`: wx.BitmapBundle
:rtype: `None`
.. method:: AddPage(self, page : Window, info : AuiNotebookPage)
:param `page`:
:type `page`: wx.Window
:param `info`:
:type `info`: wx.aui.AuiNotebookPage
:rtype: `bool`
.. method:: ButtonHitTest(self, x : int, y : int, hit : AuiTabContainerButton)
:param `x`:
:type `x`: int
:param `y`:
:type `y`: int
:param `hit`:
:type `hit`: AuiTabContainerButton
:rtype: `bool`
.. method:: DoShowHide(self)
:rtype: `None`
.. method:: GetActivePage(self)
:rtype: `int`
.. method:: GetArtProvider(self)
:rtype: :ref:`wx.aui.AuiTabArt`
.. method:: GetFlags(self)
:rtype: `int`
.. method:: GetIdxFromWindow(self, page : Window)
:param `page`:
:type `page`: wx.Window
:rtype: `int`
.. method:: GetPage(self, idx : int)
:param `idx`:
:type `idx`: int
:rtype: :ref:`wx.aui.AuiNotebookPage`
.. method:: GetPageCount(self)
:rtype: `int`
.. method:: GetPages(self)
:rtype: `AuiNotebookPageArray`
.. method:: GetTabOffset(self)
:rtype: `int`
.. method:: GetWindowFromIdx(self, idx : int)
:param `idx`:
:type `idx`: int
:rtype: `Window`
.. method:: InsertPage(self, page : Window, info : AuiNotebookPage, idx : int)
:param `page`:
:type `page`: wx.Window
:param `info`:
:type `info`: wx.aui.AuiNotebookPage
:param `idx`:
:type `idx`: int
:rtype: `bool`
.. method:: IsTabVisible(self, tabPage : int, tabOffset : int, dc : DC, wnd : Window)
:param `tabPage`:
:type `tabPage`: int
:param `tabOffset`:
:type `tabOffset`: int
:param `dc`:
:type `dc`: wx.DC
:param `wnd`:
:type `wnd`: wx.Window
:rtype: `bool`
.. method:: MakeTabVisible(self, tabPage : int, win : Window)
:param `tabPage`:
:type `tabPage`: int
:param `win`:
:type `win`: wx.Window
:rtype: `None`
.. method:: MovePage(self, page : Window, newIdx : int)
:param `page`:
:type `page`: wx.Window
:param `newIdx`:
:type `newIdx`: int
:rtype: `bool`
.. method:: RemoveButton(self, id : int)
:param `id`:
:type `id`: int
:rtype: `None`
.. method:: RemovePage(self, page : Window)
:param `page`:
:type `page`: wx.Window
:rtype: `bool`
.. method:: SetActiveColour(self, colour : Colour)
:param `colour`:
:type `colour`: wx.Colour
:rtype: `None`
.. method:: SetActivePage(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**SetActivePage** `(self, page : Window)`
:param `page`:
:type `page`: wx.Window
:rtype: `bool`
:html:`
`
**SetActivePage** `(self, page : int)`
:param `page`:
:type `page`: int
:rtype: `bool`
:html:`
`
.. method:: SetArtProvider(self, art : AuiTabArt)
:param `art`:
:type `art`: wx.aui.AuiTabArt
:rtype: `None`
.. method:: SetColour(self, colour : Colour)
:param `colour`:
:type `colour`: wx.Colour
:rtype: `None`
.. method:: SetFlags(self, flags : int)
:param `flags`:
:type `flags`: int
:rtype: `None`
.. method:: SetMeasuringFont(self, measuringFont : Font)
:param `measuringFont`:
:type `measuringFont`: wx.Font
:rtype: `None`
.. method:: SetNoneActive(self)
:rtype: `None`
.. method:: SetNormalFont(self, normalFont : Font)
:param `normalFont`:
:type `normalFont`: wx.Font
:rtype: `None`
.. method:: SetRect(self, rect : Rect, wnd: Optional[Window]=None)
:param `rect`:
:type `rect`: wx.Rect
:param `wnd`:
:type `wnd`: wx.Window
:rtype: `None`
.. method:: SetSelectedFont(self, selectedFont : Font)
:param `selectedFont`:
:type `selectedFont`: wx.Font
:rtype: `None`
.. method:: SetTabOffset(self, offset : int)
:param `offset`:
:type `offset`: int
:rtype: `None`
.. method:: TabHitTest(self, x : int, y : int, hit : Window)
:param `x`:
:type `x`: int
:param `y`:
:type `y`: int
:param `hit`:
:type `hit`: Window
:rtype: `bool`
.. attribute:: ActivePage
See :meth:`~wx.aui.AuiTabContainer.GetActivePage` and :meth:`~wx.aui.AuiTabContainer.SetActivePage`
.. attribute:: ArtProvider
See :meth:`~wx.aui.AuiTabContainer.GetArtProvider` and :meth:`~wx.aui.AuiTabContainer.SetArtProvider`
.. attribute:: Flags
See :meth:`~wx.aui.AuiTabContainer.GetFlags` and :meth:`~wx.aui.AuiTabContainer.SetFlags`
.. attribute:: PageCount
See :meth:`~wx.aui.AuiTabContainer.GetPageCount`
.. attribute:: Pages
See :meth:`~wx.aui.AuiTabContainer.GetPages`
.. attribute:: TabOffset
See :meth:`~wx.aui.AuiTabContainer.GetTabOffset` and :meth:`~wx.aui.AuiTabContainer.SetTabOffset`