spino.gui_toolkit.layout.MyTabPanel module

class spino.gui_toolkit.layout.MyTabPanel.MyTabPanel(parent, row, column, 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.

Variables:

tab_list (List[MyPanel]) – List of panel widgets for each tab

Parameters:
__init__(parent, row, column, tab_list, columnspan=1, rowspan=1, **kwargs)[source]

Initialize the MyTabPanel widget.

Parameters:
  • parent (Any) – The parent widget

  • row (int) – Row position in the parent’s grid

  • column (int) – 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

Return type:

None

get_list()[source]

Get the list of panel widgets for all tabs.

Returns:

List of panel widgets, one for each tab

Return type:

List[MyPanel]