 
       wx.lib.agw.labelbook.FlatBookBase¶
  wx.lib.agw.labelbook.FlatBookBase¶Base class for the containing window for LabelBook and FlatImageBook.
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| AddPage | Adds a page to the book. | 
| AdvanceSelection | Cycles through the tabs. | 
| AssignImageList | Assigns an image list to the control. | 
| ChangeSelection | Changes the selection for the given page, returning the previous selection. | 
| DeleteAllPages | Deletes all the pages in the book. | 
| DeletePage | Deletes the specified page, and the associated window. | 
| DoSetSelection | Select the window by the provided pointer. | 
| EnableTab | Enables or disables a tab. | 
| GetAGWWindowStyleFlag | Returns the FlatBookBasewindow style. | 
| GetCurrentPage | Returns the currently selected notebook page or None. | 
| GetEnabled | Returns whether a tab is enabled or not. | 
| GetFontBold | Gets the font bold status. | 
| GetFontSizeMultiple | Gets the font size multiple for the page captions. | 
| GetImageList | Returns the associated image list. | 
| GetPage | Returns the window at the given page position. | 
| GetPageCount | Returns the number of pages in the book. | 
| GetPageImage | Returns the image index for the given page. | 
| GetPageText | Returns the text for the given page. | 
| GetSelection | Returns the current selection. | 
| HasAGWFlag | Returns whether a flag is present in the FlatBookBasestyle. | 
| InsertPage | Inserts a page into the book at the specified position. | 
| OnNavigationKey | Handles the wx.EVT_NAVIGATION_KEYevent forFlatBookBase. | 
| RemovePage | Deletes the specified page, without deleting the associated window. | 
| ResizeTabArea | Resizes the tab area if the control has the INB_FIT_LABELTEXTstyle set. | 
| SetAGWWindowStyleFlag | Sets the window style. | 
| SetFontBold | Sets whether the page captions are bold or not. | 
| SetFontSizeMultiple | Sets the font size multiple for the page captions. | 
| SetPageImage | Sets the image index for the given page. | 
| SetPageText | Sets the text for the given page. | 
| SetSelection | Changes the selection from currently visible/selected page to the page | 
 Properties Summary¶
 Properties Summary¶| CurrentPage | See GetCurrentPage | 
| Page | See GetPage | 
| PageCount | See GetPageCount | 
| PageImage | See GetPageImage, SetPageImage | 
| PageText | See GetPageText, SetPageText | 
| Selection | See GetSelection, SetSelection | 
 Class API¶
 Class API¶FlatBookBase(wx.Panel)¶Base class for the containing window for LabelBook and FlatImageBook.
__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, agwStyle=0, name="FlatBookBase")¶Default class constructor.
| Parameters: | 
 | 
|---|
AddPage(self, page, text, select=False, imageId=-1)¶Adds a page to the book.
| Parameters: | 
 | 
|---|
Note
The call to this function generates the page changing events.
AdvanceSelection(self, forward=True)¶Cycles through the tabs.
| Parameters: | forward – if True, the selection is advanced in ascending order
(to the right), otherwise the selection is advanced in descending order. | 
|---|
Note
The call to this function generates the page changing events.
AssignImageList(self, imglist)¶Assigns an image list to the control.
| Parameters: | imglist – an instance of wx.ImageList. | 
|---|
ChangeSelection(self, page)¶Changes the selection for the given page, returning the previous selection.
| Parameters: | page – an integer specifying the page to be selected. | 
|---|
Note
The call to this function does not generate the page changing events.
DeleteAllPages(self)¶Deletes all the pages in the book.
DeletePage(self, page)¶Deletes the specified page, and the associated window.
| Parameters: | page – an integer specifying the page to be deleted. | 
|---|
Note
The call to this function generates the page changing events.
DoSetSelection(self, window)¶Select the window by the provided pointer.
| Parameters: | window – an instance of wx.Window. | 
|---|
EnableTab(self, page, enabled=True)¶Enables or disables a tab.
| Parameters: | 
 | 
|---|
GetAGWWindowStyleFlag(self)¶Returns the FlatBookBase window style.
See also
SetAGWWindowStyleFlag for a list of possible window style flags.
GetCurrentPage(self)¶Returns the currently selected notebook page or None.
GetEnabled(self, page)¶Returns whether a tab is enabled or not.
| Parameters: | page – an integer specifying the page index. | 
|---|
GetFontBold(self)¶Gets the font bold status.
GetFontSizeMultiple(self)¶Gets the font size multiple for the page captions.
GetImageList(self)¶Returns the associated image list.
GetPage(self, page)¶Returns the window at the given page position.
| Parameters: | page – an integer specifying the page to be returned. | 
|---|
GetPageCount(self)¶Returns the number of pages in the book.
GetPageImage(self, page)¶Returns the image index for the given page.
| Parameters: | page – an integer specifying the page index. | 
|---|
GetPageText(self, page)¶Returns the text for the given page.
| Parameters: | page – an integer specifying the page index. | 
|---|
GetSelection(self)¶Returns the current selection.
HasAGWFlag(self, flag)¶Returns whether a flag is present in the FlatBookBase style.
| Parameters: | flag – one of the possible FlatBookBasewindow styles. | 
|---|
See also
SetAGWWindowStyleFlag for a list of possible window style flags.
InsertPage(self, page_idx, page, text, select=False, imageId=-1)¶Inserts a page into the book at the specified position.
| Parameters: | 
 | 
|---|
Note
The call to this function generates the page changing events.
Handles the wx.EVT_NAVIGATION_KEY event for FlatBookBase.
| Parameters: | event – a NavigationKeyEventevent to be processed. | 
|---|
RemovePage(self, page)¶Deletes the specified page, without deleting the associated window.
| Parameters: | page – an integer specifying the page to be removed. | 
|---|
Note
The call to this function generates the page changing events.
ResizeTabArea(self)¶Resizes the tab area if the control has the INB_FIT_LABELTEXT style set.
SetAGWWindowStyleFlag(self, agwStyle)¶Sets the window style.
| Parameters: | agwStyle – can be a combination of the following bits: 
 | 
|---|
SetFontBold(self, bold)¶Sets whether the page captions are bold or not.
| Parameters: | bold – TrueorFalse. | 
|---|
SetFontSizeMultiple(self, multiple)¶Sets the font size multiple for the page captions.
| Parameters: | multiple – The multiple to be applied to the system font to get the our font size. | 
|---|
SetPageImage(self, page, imageId)¶Sets the image index for the given page.
| Parameters: | 
 | 
|---|
SetPageText(self, page, text)¶Sets the text for the given page.
| Parameters: | 
 | 
|---|
SetSelection(self, page)¶Changes the selection from currently visible/selected page to the page given by page.
| Parameters: | page – an integer specifying the page to be selected. | 
|---|
Note
The call to this function generates the page changing events.
CurrentPage¶See GetCurrentPage
PageCount¶See GetPageCount
PageImage¶See GetPageImage, SetPageImage
PageText¶See GetPageText, SetPageText
Selection¶See GetSelection, SetSelection