EdTabBase¶Base class for all tab views to derive from, this class just defines the abstract interface and some common basic methods. Initialize this base class after initializing the wx control instance of the subclass.
Methods Summary¶| __init__ | Initialize the tab base class |
| CanCloseTab | Called when checking if tab can be closed or not |
| DoDeactivateTab | Called when the tab is moved from the foreground to background |
| DoOnIdle | Called when the notebook is idle and this instance is the active |
| DoTabClosing | Called when the tab has been selected to be closed in the notebook |
| DoTabOpen | Called to open a new tab |
| DoTabSelected | Called when the page is selected in the notebook |
| GetName | Get the unique name for this tab control. |
| GetTabImage | Get the Bitmap to use for the tab |
| GetTabIndex | Return the index of the tab in the notebook |
| GetTabLabel | Get the tabs label |
| GetTabMenu | Get the context menu to show on the tab |
| GetTitleString | Get the title string to display in the MainWindows title bar |
| OnTabMenu | Handle events from this tabs menu |
| SetTabIndex | Set the tab index |
| SetTabLabel | Set the tabs label |
| SetTabTitle | Set the notebooks title text for this tab |
Class API¶Base class for all tab views to derive from, this class just defines the abstract interface and some common basic methods. Initialize this base class after initializing the wx control instance of the subclass.
Initialize the tab base class
Called when checking if tab can be closed or not
| Returns: | bool |
|---|
Called when the tab is moved from the foreground to background
Called when the notebook is idle and this instance is the active tab.
Called when the tab has been selected to be closed in the notebook
Called to open a new tab
Called when the page is selected in the notebook
Get the unique name for this tab control.
| Returns: | (unicode) string |
|---|
Get the Bitmap to use for the tab
| Returns: | wx.Bitmap (16x16) |
|---|
Return the index of the tab in the notebook
| Returns: | int |
|---|
Get the tabs label
| Returns: | string |
|---|
Get the context menu to show on the tab
| Returns: | wx.Menu or None |
|---|
Get the title string to display in the MainWindows title bar
| Returns: | (unicode) string |
|---|
Handle events from this tabs menu
| Parameters: | evt – menu event |
|---|
Set the tab index
| Parameters: | idx – int |
|---|
Set the tabs label
| Parameters: | lbl – string |
|---|
Set the notebooks title text for this tab