Skip to content

Scale

Bases: SignalMixin, TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Scale

bootstack wrapper for ttk.Scale with bootstyle support.

value property writable

value: float

Get or set the scale's current value.

__init__

__init__(
    master: Master = None, **kwargs: Unpack[ScaleKwargs]
) -> None

Create a themed bootstack Scale.

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.

value float

Initial value.

variable Variable

Tk variable linked to the value.

signal Signal

Reactive Signal linked to the value (auto-synced with variable).

orient str

Orientation of the scale ('horizontal' or 'vertical').

length int

Scale length in pixels.

command Callable

Callback on value change.

takefocus bool

Whether the widget participates in focus traversal.

accent str

Accent token for styling, e.g. 'primary', 'success', 'danger'.

bootstyle str

DEPRECATED - Use accent instead.

surface str

Optional surface token; otherwise inherited.

style_options dict

Optional dict forwarded to the style builder.