spino.gui_toolkit.widget.MyLabel module¶
- class spino.gui_toolkit.widget.MyLabel.MyLabel(parent, row, column, color='#AAAAAA', label_text='Label', font=None, columnspan=1, **kwargs)[source]¶
Bases:
FrameA custom label widget that wraps tkinter’s Label in a Frame.
This class creates a text label with customizable appearance and behavior, inheriting from Frame to provide better grid layout management and consistent styling.
- Variables:
label (Label) – The underlying tkinter Label widget
- Parameters:
- __init__(parent, row, column, color='#AAAAAA', label_text='Label', font=None, columnspan=1, **kwargs)[source]¶
Initialize the MyLabel widget.
- Parameters:
parent (
Any) – The parent widgetrow (
int) – Row position in the parent’s gridcolumn (
int) – Column position in the parent’s gridcolor (
str) – Background color of the labellabel_text (
str) – Text to display in the labelfont (
Optional[Tuple[str,int,str]]) – Font specification (family, size, style)columnspan (
int) – Number of columns the label should span**kwargs (
Dict[str,Any]) – Additional keyword arguments passed to the Label widget
- Return type:
None