Skip to content

Scrollbar

Bases: TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Scrollbar

bootstack wrapper for ttk.Scrollbar with bootstyle support.

__init__

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

Create a themed bootstack Scrollbar.

Parameters:

Name Type Description Default
master Master

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

None

Other Parameters:

Name Type Description
orient str

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

command Callable

Scroll command callback.

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', 'round', 'square'.

bootstyle str

DEPRECATED - Use accent and variant instead. Combined style tokens (e.g., 'primary', 'danger-square').

surface str

Optional surface token; otherwise inherited.

style_options dict

Optional dict forwarded to the style builder.