GUIBRUSHR.GUI.LAYOUT.MyTabPanel module¶
- class GUIBRUSHR.GUI.LAYOUT.MyTabPanel.MyTabPanel(parent: Any, row: int, column: int, tab_list, columnspan=1, rowspan=1, **kwargs)[source]¶
Bases:
NotebookA custom tabbed panel widget that extends tkinter’s Notebook.
This class creates a tabbed interface with multiple panels, each with its own background color and content. It provides a clean way to organize related content into separate tabs.
- __init__(parent: Any, row: int, column: int, tab_list, columnspan=1, rowspan=1, **kwargs) None[source]¶
Initialize the MyTabPanel widget.
- Parameters:
parent – The parent widget
row – Row position in the parent’s grid
column – Column position in the parent’s grid
tab_list – List of tuples containing (tab_name, tab_color) for each tab
rowspan – Row span
columnspan – Column span
**kwargs – Additional keyword arguments passed to the Notebook widget