wx.lib.agw.flatnotebook.FNBRendererRibbonTabs¶
This class handles the drawing of tabs using the Ribbon Tabs renderer.
Class Hierarchy¶
Known Superclasses¶
wx.lib.agw.flatnotebook.FNBRenderer
Methods Summary¶
Default class constructor. |
|
Calculates the width of the input tab. |
|
Draws a tab using the Ribbon Tabs style. |
|
Actually draws the tabs in |
Class API¶
- class FNBRendererRibbonTabs(FNBRenderer)¶
This class handles the drawing of tabs using the Ribbon Tabs renderer.
Methods¶
- __init__(self)¶
Default class constructor.
- CalcTabWidth(self, pageContainer, tabIdx, tabHeight)¶
Calculates the width of the input tab.
- Parameters:
pageContainer – an instance of
FlatNotebook
;tabIdx – the index of the input tab;
tabHeight – the height of the tab.
- DrawTab(self, pageContainer, dc, posx, tabIdx, tabWidth, tabHeight, btnStatus)¶
Draws a tab using the Ribbon Tabs style.
- Parameters:
pageContainer – an instance of
FlatNotebook
;dc – an instance of
wx.DC
;posx – the x position of the tab;
tabIdx – the index of the tab;
tabWidth – the tab’s width;
tabHeight – the tab’s height;
btnStatus – the status of the ‘X’ button inside this tab.
- DrawTabs(self, pageContainer, dc)¶
Actually draws the tabs in
FlatNotebook
.- Parameters:
pageContainer – an instance of
FlatNotebook
;dc – an instance of
wx.DC
.