GUIBRUSHR.GUI.WIDGET.MyEntry module¶
- class GUIBRUSHR.GUI.WIDGET.MyEntry.MyEntry(parent: Any, row: int, column: int, text: str, label_text: str | None = None, color: str = '#AAAAAA', columnspan: int = 2, entry_width: int = 10, **kwargs: Dict[str, Any])[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.
- entry¶
The underlying tkinter Entry widget
- Type:
Entry
- __init__(parent: Any, row: int, column: int, text: str, label_text: str | None = None, color: str = '#AAAAAA', columnspan: int = 2, entry_width: int = 10, **kwargs: Dict[str, Any]) None[source]¶
Initialize the MyEntry widget.
- Parameters:
parent – The parent widget
row – Row position in the parent’s grid
column – Column position in the parent’s grid
text – Initial text to display in the entry field
label_text – Optional text to display as a label before the entry field
color – Background color of the containing frame
columnspan – Number of columns the widget should span
entry_width – Width of the entry field in characters
**kwargs – Additional keyword arguments passed to the Entry widget
- get_value() str[source]¶
Get the current value from the entry field.
- Returns:
The current text in the entry field
- Return type:
str