spino.gui_toolkit.widget.MyEntry module¶
- class spino.gui_toolkit.widget.MyEntry.MyEntry(parent, row, column, text, label_text=None, color='#AAAAAA', columnspan=2, entry_width=10, **kwargs)[source]¶
Bases:
FrameA custom entry widget that wraps tkinter’s Entry in a Frame.
This class creates a text entry field with customizable appearance and behavior, inheriting from Frame to provide better grid layout management and consistent styling. It can optionally include a label.
- Variables:
entry (Entry) – The underlying tkinter Entry widget
- Parameters:
- __init__(parent, row, column, text, label_text=None, color='#AAAAAA', columnspan=2, entry_width=10, **kwargs)[source]¶
Initialize the MyEntry widget.
- Parameters:
parent (
Any) – The parent widgetrow (
int) – Row position in the parent’s gridcolumn (
int) – Column position in the parent’s gridtext (
str) – Initial text to display in the entry fieldlabel_text (
Optional[str]) – Optional text to display as a label before the entry fieldcolor (
str) – Background color of the containing framecolumnspan (
int) – Number of columns the widget should spanentry_width (
int) – Width of the entry field in characters**kwargs (
Dict[str,Any]) – Additional keyword arguments passed to the Entry widget
- Return type:
None
- get_value()[source]¶
Get the current value from the entry field.
- Returns:
The current text in the entry field
- Return type: