Skip to content

Progressbar

Bases: SignalMixin, TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Progressbar

bootstack wrapper for ttk.Progressbar with bootstyle support.

value property writable

value: float

Get or set the progress value.

__init__

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

Create a themed bootstack Progressbar.

Parameters:

Name Type Description Default
master Master

Parent widget. If None, uses the default root window.

None

Other Parameters:

Name Type Description
mode str

Progress mode ('determinate' or 'indeterminate').

orient str

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

length int

Requested length of the progress bar in pixels.

maximum float

Maximum value.

value float

Current value.

variable Variable

Tk variable linked to the value.

signal Signal

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

phase int

Animation phase for indeterminate mode.

style str

Explicit ttk style name (overrides accent/variant).

accent str

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

variant str

Style variant, e.g. 'default', 'striped', 'thin'.

bootstyle str

DEPRECATED - Use accent and variant instead. Combined style tokens (e.g., 'success', 'striped').

surface str

Optional surface token; otherwise inherited.

style_options dict

Optional dict forwarded to the style builder.

get

get() -> float

Return the current progress value.

set

set(value: float) -> None

Set the progress value.