wx.lib.agw.aui.auibook.AuiTabCtrl¶
This is an actual wx.Window - derived window which can be used as a tab control in the normal sense.
Class Hierarchy¶
Known Superclasses¶
wx.Control, wx.lib.agw.aui.auibook.AuiTabContainer
Methods Summary¶
Default class constructor. |
|
Gets the size which best suits the window: for a control, it would be the |
|
Returns the default border style for |
|
Returns the page at which the mouse is pointing (if any). |
|
Returns whether the user is dragging a tab with the mouse or not. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Starts a timer: when it fires, a tooltip will be shown on the notebook tab |
|
Shows the tooltip on the tab. |
|
Stops the timer keeping track of tooltips and mouse movements on the tab area. |
Class API¶
- class AuiTabCtrl(wx.Control, AuiTabContainer)¶
This is an actual
wx.Window- derived window which can be used as a tab control in the normal sense.
Methods¶
- __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_BORDER | wx.WANTS_CHARS | wx.TAB_TRAVERSAL)¶
Default class constructor. Used internally, do not call it in your code!
- Parameters:
parent – the
AuiNotebookparent;id (integer) – an identifier for the control: a value of -1 is taken to mean a default;
pos (wx.Point) – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
size (wx.Size) – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
style (integer) – the window style.
- DoGetBestSize(self)¶
Gets the size which best suits the window: for a control, it would be the minimal size which doesn’t truncate the control, for a panel - the same size as it would have after a call to Fit().
Note
Overridden from
wx.Control.
- GetDefaultBorder(self)¶
Returns the default border style for
AuiTabCtrl.
- GetPointedToTab(self)¶
Returns the page at which the mouse is pointing (if any).
- Return type:
- IsDragging(self)¶
Returns whether the user is dragging a tab with the mouse or not.
- OnButton(self, event)¶
Handles the
EVT_AUINOTEBOOK_BUTTONevent forAuiTabCtrl.- Parameters:
event – a
AuiNotebookEventevent to be processed.
- OnCaptureLost(self, event)¶
Handles the
wx.EVT_MOUSE_CAPTURE_LOSTevent forAuiTabCtrl.- Parameters:
event – a
MouseCaptureLostEventevent to be processed.
- OnEnterWindow(self, event)¶
Handles the
wx.EVT_ENTER_WINDOWevent fofAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnEraseBackground(self, event)¶
Handles the
wx.EVT_ERASE_BACKGROUNDevent forAuiTabCtrl.- Parameters:
event – a
EraseEventevent to be processed.
Note
This is intentionally empty, to reduce flicker.
- OnKeyDown(self, event)¶
Handles the
wx.EVT_KEY_DOWNevent forAuiTabCtrl.- Parameters:
event – a
KeyEventevent to be processed.
- OnKeyDown2(self, event)¶
Handles the
wx.EVT_KEY_DOWNevent forAuiTabCtrl.- Parameters:
event – a
KeyEventevent to be processed.
Deprecated since version 0.6: This implementation is now deprecated. Refer to
OnKeyDownfor the correct one.
- OnKillFocus(self, event)¶
Handles the
wx.EVT_KILL_FOCUSevent forAuiTabCtrl.- Parameters:
event – a
FocusEventevent to be processed.
- OnLeaveWindow(self, event)¶
Handles the
wx.EVT_LEAVE_WINDOWevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnLeftDClick(self, event)¶
Handles the
wx.EVT_LEFT_DCLICKevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnLeftDown(self, event)¶
Handles the
wx.EVT_LEFT_DOWNevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnLeftUp(self, event)¶
Handles the
wx.EVT_LEFT_UPevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnMiddleDown(self, event)¶
Handles the
wx.EVT_MIDDLE_DOWNevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnMiddleUp(self, event)¶
Handles the
wx.EVT_MIDDLE_UPevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnMotion(self, event)¶
Handles the
wx.EVT_MOTIONevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnPaint(self, event)¶
Handles the
wx.EVT_PAINTevent forAuiTabCtrl.- Parameters:
event – a
PaintEventevent to be processed.
- OnRightDown(self, event)¶
Handles the
wx.EVT_RIGHT_DOWNevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnRightUp(self, event)¶
Handles the
wx.EVT_RIGHT_UPevent forAuiTabCtrl.- Parameters:
event – a
MouseEventevent to be processed.
- OnSetFocus(self, event)¶
Handles the
wx.EVT_SET_FOCUSevent forAuiTabCtrl.- Parameters:
event – a
FocusEventevent to be processed.
- OnSize(self, event)¶
Handles the
wx.EVT_SIZEevent forAuiTabCtrl.- Parameters:
event – a
wx.SizeEventevent to be processed.
- RestartTooltipTimer(self, wnd)¶
Starts a timer: when it fires, a tooltip will be shown on the notebook tab the mouse is pointing at.
- Parameters:
wnd (wx.Window) – the window pointed by the mouse.
- ShowTooltip(self)¶
Shows the tooltip on the tab.
- StopTooltipTimer(self)¶
Stops the timer keeping track of tooltips and mouse movements on the tab area.