Label
app.ui.qt.dialogs.labelModule for label; implements the Qt presentation components.
See Also
BBoxViewModel— carries the label displayed for a boxAnnotationHandler— coordinates label edits
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:
|
initial_label
|
Label initially shown in the editor.
TYPE:
|
__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. |