Entry
Bases: TextSignalMixin, TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Entry
bootstack wrapper for ttk.Entry with bootstyle support.
__init__
__init__(
master: Master = None, **kwargs: Unpack[EntryKwargs]
) -> None
Create a themed bootstack Entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
master
|
Master
|
Parent widget. If None, uses the default root window. |
None
|
Other Parameters:
| Name | Type | Description |
|---|---|---|
textvariable |
Variable
|
Tk variable linked to the entry text. |
textsignal |
Signal[str]
|
Reactive Signal linked to the entry text (auto-synced with textvariable). |
show |
str
|
Substitute character for masked input. |
width |
int
|
Width in characters. |
exportselection |
bool
|
Whether selection is exported to X clipboard. |
justify |
str
|
Text alignment inside the entry. |
validate |
str
|
Validation mode. |
validatecommand |
Callable
|
Validation callback. |
invalidcommand |
Callable
|
Callback executed on validation failure. |
xscrollcommand |
Callable
|
Horizontal scroll callback. |
font |
str | Font
|
Font for the entry text. |
foreground |
str
|
Text color. |
background |
str
|
Background color. |
state |
str
|
Widget state. |
takefocus |
bool
|
Whether the widget participates in focus traversal. |
style |
str
|
Explicit ttk style name (overrides accent/variant). |
accent |
str
|
Accent token for styling, e.g. 'primary', 'danger', 'success'. |
variant |
str
|
Style variant, e.g. 'default'. |
density |
str
|
The vertical and horizontal compactness, e.g. 'default', 'compact'. |
bootstyle |
str
|
DEPRECATED - Use |
surface |
str
|
Optional surface token; otherwise inherited. |
style_options |
dict
|
Optional dict forwarded to the style builder. |