spino.gui_toolkit.layout.MyPanel module¶
- class spino.gui_toolkit.layout.MyPanel.MyPanel(parent, color, row, column, columnspan=1, rowspan=1, visible=True, **kwargs)[source]¶
Bases:
FrameA custom panel widget that extends tkinter’s Frame with additional layout capabilities.
This class creates a panel with customizable appearance and behavior, inheriting from Frame to provide better grid layout management and consistent styling. It includes automatic column configuration and visibility control.
- Parameters:
- __init__(parent, color, row, column, columnspan=1, rowspan=1, visible=True, **kwargs)[source]¶
Initialize the MyPanel widget.
- Parameters:
parent (
Any) – The parent widgetcolor (
str) – Background color of the panelrow (
int) – Row position in the parent’s gridcolumn (
int) – Column position in the parent’s gridcolumnspan (
int) – Number of columns the panel should spanrowspan (
int) – Number of rows the panel should spanvisible (
bool) – Whether the panel should be visible initially**kwargs – Additional keyword arguments passed to the Frame widget
- Return type:
None