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: Notebook

A 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.

tab_list

List of panel widgets for each tab

Type:

List[MyPanel]

__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

get_list() List[MyPanel][source]

Get the list of panel widgets for all tabs.

Returns:

List of panel widgets, one for each tab

Return type:

List[MyPanel]