Skip to content

LabelFrame

Bases: LocalizationMixin, TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, LabelFrame

bootstack wrapper for ttk.Labelframe with bootstyle support.

__init__

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

Create a themed bootstack Labelframe.

Parameters:

Name Type Description Default
master Master

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

None

Other Parameters:

Name Type Description
text str

Text for the embedded label.

labelanchor str

Position of the label relative to the frame.

padding int | tuple

Extra internal padding.

relief str

Border style.

borderwidth int

Border width.

width int

Requested width in pixels.

height int

Requested height in pixels.

style str

Explicit ttk style name (overrides accent/variant).

accent str

Accent token for styling, e.g. 'primary', 'secondary'.

bootstyle str

DEPRECATED - Use accent instead.

surface str

Optional surface token; otherwise inherited.

style_options dict

Optional dict forwarded to the style builder.

localize bool | Literal['auto']

Determines the widget's localization mode.