 
       wx.lib.agw.flatnotebook.FNBRenderer¶
  wx.lib.agw.flatnotebook.FNBRenderer¶Parent class for the 6 renderers defined: Standard, VC71, Fancy, Firefox 2, VC8 and Ribbon. This class implements the common methods of all 6 renderers.
 Known Subclasses¶
 Known Subclasses¶wx.lib.agw.flatnotebook.FNBRendererDefault, wx.lib.agw.flatnotebook.FNBRendererFancy, wx.lib.agw.flatnotebook.FNBRendererFirefox2, wx.lib.agw.flatnotebook.FNBRendererRibbonTabs, wx.lib.agw.flatnotebook.FNBRendererVC71, wx.lib.agw.flatnotebook.FNBRendererVC8
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| CalcTabHeight | Calculates the height of the input tab. | 
| CalcTabWidth | Calculates the width of the input tab. | 
| DrawArrowAccordingToState | Draws the left and right scrolling arrows. | 
| DrawDragHint | Draws tab drag hint, the default implementation is to do nothing. | 
| DrawDropDownArrow | Draws the drop-down arrow in the navigation area. | 
| DrawFocusRectangle | Draws a focus rectangle like the native Notebook. | 
| DrawLeftArrow | Draws the left navigation arrow. | 
| DrawRightArrow | Draws the right navigation arrow. | 
| DrawTabs | Actually draws the tabs in FlatNotebook. | 
| DrawTabsLine | Draws a line over the tabs. | 
| DrawTabX | Draws the ‘X’ in the selected tab. | 
| DrawX | Draw the ‘X’ navigation button in the navigation area. | 
| GetButtonsAreaLength | Returns the navigation area width. | 
| GetDropArrowButtonPos | Returns the drop down button position in the navigation area. | 
| GetLeftButtonPos | Returns the left button position in the navigation area. | 
| GetRightButtonPos | Returns the right button position in the navigation area. | 
| GetXPos | Returns the ‘X’ button position in the navigation area. | 
| NumberTabsCanFit | Calculates the number of tabs that can fit on the available space on screen. | 
 Class API¶
 Class API¶FNBRenderer(object)¶Parent class for the 6 renderers defined: Standard, VC71, Fancy, Firefox 2, VC8 and Ribbon. This class implements the common methods of all 6 renderers.
__init__(self)¶Default class constructor.
CalcTabHeight(self, pageContainer)¶Calculates the height of the input tab.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
CalcTabWidth(self, pageContainer, tabIdx, tabHeight)¶Calculates the width of the input tab.
| Parameters: | 
 | 
|---|
DrawArrowAccordingToState(self, dc, pc, rect)¶Draws the left and right scrolling arrows.
| Parameters: | 
 | 
|---|
DrawDragHint(self, pc, tabIdx)¶Draws tab drag hint, the default implementation is to do nothing. You can override this function to provide a nice feedback to user.
| Parameters: | 
 | 
|---|
Note
To show your own custom drag and drop UI feedback, you must override this method in your derived class.
DrawDropDownArrow(self, pageContainer, dc)¶Draws the drop-down arrow in the navigation area.
| Parameters: | 
 | 
|---|
DrawFocusRectangle(self, dc, pageContainer, page)¶Draws a focus rectangle like the native Notebook.
| Parameters: | 
 | 
|---|
DrawLeftArrow(self, pageContainer, dc)¶Draws the left navigation arrow.
| Parameters: | 
 | 
|---|
DrawRightArrow(self, pageContainer, dc)¶Draws the right navigation arrow.
| Parameters: | 
 | 
|---|
DrawTabs(self, pageContainer, dc)¶Actually draws the tabs in FlatNotebook.
| Parameters: | 
 | 
|---|
DrawTabsLine(self, pageContainer, dc, selTabX1=-1, selTabX2=-1)¶Draws a line over the tabs.
| Parameters: | 
 | 
|---|
DrawTabX(self, pageContainer, dc, rect, tabIdx, btnStatus)¶Draws the ‘X’ in the selected tab.
| Parameters: | 
 | 
|---|
DrawX(self, pageContainer, dc)¶Draw the ‘X’ navigation button in the navigation area.
| Parameters: | 
 | 
|---|
GetButtonsAreaLength(self, pageContainer)¶Returns the navigation area width.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
GetDropArrowButtonPos(self, pageContainer)¶Returns the drop down button position in the navigation area.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
GetLeftButtonPos(self, pageContainer)¶Returns the left button position in the navigation area.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
GetRightButtonPos(self, pageContainer)¶Returns the right button position in the navigation area.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
GetXPos(self, pageContainer)¶Returns the ‘X’ button position in the navigation area.
| Parameters: | pageContainer – an instance of FlatNotebook. | 
|---|
NumberTabsCanFit(self, pageContainer, fr=-1)¶Calculates the number of tabs that can fit on the available space on screen.
| Parameters: | 
 | 
|---|