Spinbox
Bases: TextSignalMixin, TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Spinbox
bootstack wrapper for ttk.Spinbox with bootstyle support.
__init__
__init__(
master: Master = None, **kwargs: Unpack[SpinboxKwargs]
) -> None
Create a themed bootstack Spinbox.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
master
|
Master
|
Parent widget. If None, uses the default root window. |
None
|
Other Parameters:
| Name | Type | Description |
|---|---|---|
from_ |
float
|
Minimum value. |
to |
float
|
Maximum value. |
increment |
float
|
Step size between values. |
values |
list
|
Sequence of values to cycle through. |
wrap |
bool
|
Whether to wrap between min/max. |
command |
Callable
|
Callback when the value changes. |
textvariable |
Variable
|
Tk variable linked to the entry text. |
textsignal |
Signal
|
Reactive Signal linked to the text (auto-synced with textvariable). |
format |
str
|
Display format string. |
width |
int
|
Widget width in characters. |
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'. |
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. |