pyqtribbon.tabbar module
- class pyqtribbon.tabbar.RibbonTabBar(parent=None)[source]
Bases:
QTabBarThe TabBar for the title widget.
Create a new tab bar.
- Parameters:
parent – The parent widget.
- addAssociatedTabs(name: str, texts: List[str], color: QColor) List[int][source]
Add associated multiple tabs which have the same color to the tab bar.
- Parameters:
name – The name of the context category.
texts – The texts of the tabs.
color – The color of the tabs.
- Returns:
The indices of the tabs.
- addTab(text: str, color: QColor | None = None, *args, **kwargs) int[source]
Add a new tab to the tab bar.
- Parameters:
text – The text of the tab.
color – The color of the tab.
- Returns:
The index of the tab.
- indexOf(tabName: str) int[source]
Return the index of the tab with the given name.
- Parameters:
tabName – The name of the tab.
- Returns:
The index of the tab.