create_label

lsst.ts.m2gui.create_label(name: str = '', tool_tip: str = '', point_size: int | None = None, is_bold: bool = False) QLabel

Create the label.

Parameters

namestr, optional

Label name. (the default is “”)

tool_tipstr, optional

Tool tip. (the default is “”)

point_sizeint or None, optional

Point size of label. The value should be greater than 0. Put None if use the system default. (the default is None)

is_boldbool

Is the bold format or not. (the default is False)

Returns

labelPySide6.QtWidgets.QLabel

label.