LabeledScale#

LabeledScale is a composite widget that ttkbootstrap ships (ttk.LabeledScale) — a ttk Scale paired with a Label that automatically shows the scale’s current value. The scale and label are reachable as the scale and label attributes. This page is the complete lookup reference.

Options#

Option

Type

Description

bootstyle

str

The color of the scale and label — one of primary, secondary, success, info, warning, danger, light, dark. Default "default".

variable

Variable

The variable bound to the scale’s value. If omitted, a DoubleVar is created automatically. Default None.

from_

int | float

The minimum value of the scale. Default 0.

to

int | float

The maximum value of the scale. Default 10.

compound

str

Where the label sits relative to the scale: "top" or "bottom". Default "top".

LabeledScale is a Frame subclass and also accepts the frame’s own options (padding, cursor, width, height, …), applied to the container.

Methods#

value

The current scale value (property). This mirrors the bound variable, so you can also read or set it through that variable.

Shared capabilities#

LabeledScale also has the methods every widget inherits — configuration, placement, event binding, lifecycle, focus, and introspection. These are documented under Capabilities.

See also#