AGW Logo

agw_title AuiTabCtrl

This is an actual wx.Window - derived window which can be used as a tab control in the normal sense.

hierarchy Inheritance Diagram

Inheritance diagram for: AuiTabCtrl

Inheritance diagram of AuiTabCtrl


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DoGetBestSizeGets the size which best suits the window: for a control, it would be the
GetDefaultBorderReturns the default border style for AuiTabCtrl.
IsDraggingReturns whether the user is dragging a tab with the mouse or not.
OnButtonHandles the EVT_AUINOTEBOOK_BUTTON event for AuiTabCtrl.
OnCaptureLostHandles the wx.EVT_MOUSE_CAPTURE_LOST event for AuiTabCtrl.
OnEraseBackgroundHandles the wx.EVT_ERASE_BACKGROUND event for AuiTabCtrl.
OnKeyDownHandles the wx.EVT_KEY_DOWN event for AuiTabCtrl.
OnKeyDown2Deprecated.
OnKillFocusHandles the wx.EVT_KILL_FOCUS event for AuiTabCtrl.
OnLeaveWindowHandles the wx.EVT_LEAVE_WINDOW event for AuiTabCtrl.
OnLeftDClickHandles the wx.EVT_LEFT_DCLICK event for AuiTabCtrl.
OnLeftDownHandles the wx.EVT_LEFT_DOWN event for AuiTabCtrl.
OnLeftUpHandles the wx.EVT_LEFT_UP event for AuiTabCtrl.
OnMiddleDownHandles the wx.EVT_MIDDLE_DOWN event for AuiTabCtrl.
OnMiddleUpHandles the wx.EVT_MIDDLE_UP event for AuiTabCtrl.
OnMotionHandles the wx.EVT_MOTION event for AuiTabCtrl.
OnPaintHandles the wx.EVT_PAINT event for AuiTabCtrl.
OnRightDownHandles the wx.EVT_RIGHT_DOWN event for AuiTabCtrl.
OnRightUpHandles the wx.EVT_RIGHT_UP event for AuiTabCtrl.
OnSetFocusHandles the wx.EVT_SET_FOCUS event for AuiTabCtrl.
OnSizeHandles the wx.EVT_SIZE event for AuiTabCtrl.

API Class API

class AuiTabCtrl(wx.PyControl, AuiTabContainer)[source]

This is an actual wx.Window - derived window which can be used as a tab control in the normal sense.



__init__(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_BORDER|wx.WANTS_CHARS|wx.TAB_TRAVERSAL)[source]

Default class constructor. Used internally, do not call it in your code!

Parameters:
  • parent – the AuiTabCtrl parent;
  • id – an identifier for the control: a value of -1 is taken to mean a default;
  • pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
  • 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 – the window style.


DoGetBestSize()[source]

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.PyControl.



GetDefaultBorder()[source]

Returns the default border style for AuiTabCtrl.



IsDragging()[source]

Returns whether the user is dragging a tab with the mouse or not.



OnButton(event)[source]

Handles the EVT_AUINOTEBOOK_BUTTON event for AuiTabCtrl.

Parameters:event – a AuiNotebookEvent event to be processed.


OnCaptureLost(event)[source]

Handles the wx.EVT_MOUSE_CAPTURE_LOST event for AuiTabCtrl.

Parameters:event – a wx.MouseCaptureLostEvent event to be processed.


OnEraseBackground(event)[source]

Handles the wx.EVT_ERASE_BACKGROUND event for AuiTabCtrl.

Parameters:event – a wx.EraseEvent event to be processed.

Note

This is intentionally empty, to reduce flicker.



OnKeyDown(event)[source]

Handles the wx.EVT_KEY_DOWN event for AuiTabCtrl.

Parameters:event – a wx.KeyEvent event to be processed.


OnKeyDown2(event)[source]

Deprecated.

Handles the wx.EVT_KEY_DOWN event for AuiTabCtrl.

Parameters:event – a wx.KeyEvent event to be processed.

Warning

This method implementation is now deprecated. Refer to OnKeyDown for the correct one.



OnKillFocus(event)[source]

Handles the wx.EVT_KILL_FOCUS event for AuiTabCtrl.

Parameters:event – a wx.FocusEvent event to be processed.


OnLeaveWindow(event)[source]

Handles the wx.EVT_LEAVE_WINDOW event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.


OnLeftDClick(event)[source]

Handles the wx.EVT_LEFT_DCLICK event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnLeftDown(event)[source]

Handles the wx.EVT_LEFT_DOWN event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnLeftUp(event)[source]

Handles the wx.EVT_LEFT_UP event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnMiddleDown(event)[source]

Handles the wx.EVT_MIDDLE_DOWN event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnMiddleUp(event)[source]

Handles the wx.EVT_MIDDLE_UP event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnMotion(event)[source]

Handles the wx.EVT_MOTION event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnPaint(event)[source]

Handles the wx.EVT_PAINT event for AuiTabCtrl.

Parameters:event – a wx.PaintEvent event to be processed.


OnRightDown(event)[source]

Handles the wx.EVT_RIGHT_DOWN event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnRightUp(event)[source]

Handles the wx.EVT_RIGHT_UP event for AuiTabCtrl.

Parameters:event – a wx.MouseEvent event to be processed.



OnSetFocus(event)[source]

Handles the wx.EVT_SET_FOCUS event for AuiTabCtrl.

Parameters:event – a wx.FocusEvent event to be processed.



OnSize(event)[source]

Handles the wx.EVT_SIZE event for AuiTabCtrl.

Parameters:event – a wx.SizeEvent event to be processed.
Tree

Table Of Contents

Previous topic

AuiTabContainerButton

Next topic

CommandNotebookEvent