Skip to content

Label

app.ui.qt.dialogs.label

View source code

Module for label; implements the Qt presentation components.

See Also

Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.

LabelDialog

Bases: QDialog

Simple dialog to collect a label string after a bbox has been drawn interactively.

PARAMETER DESCRIPTION
parent

Optional Qt parent object.

TYPE: QWidget | None DEFAULT: None

initial_label

Label initially shown in the editor.

TYPE: str DEFAULT: ''

__init__(parent: QWidget | None = None, *, initial_label: str = '') -> None

get_label() -> str

Return the entered label with surrounding whitespace removed.

RETURNS DESCRIPTION
str

Stripped label text.