class documentation

QLabel2 class.

Method __init__ Initializes a QLabel.
Method set Sets the label properties.
Class Variable DebugLabels Undocumented
def __init__(self, text: str, icon: str | None = None, icon_color: str | None = None, icon_size: QSize = QSize(16, 16), expand: bool = True, align_right: bool = False, width: int | None = None, **kwargs):

Initializes a QLabel.

Please see QLabel2.set() for supported arguments.

Parameters
text:strText
icon:str | NoneQtAwesome icon ID (optional)
icon_color:str | NoneIcon color (optional)
icon_size:QSizeIcon size
expand:boolEnable to expand
align_right:boolEnable to align right
width:int | NoneWidth (optional)
**kwargsUndocumented
def set(self, text: str, font: QFont | None = None, font_size: str | None = None, bold: bool = False, italic: bool = False, color: str | tuple[int, int, int] = 'black', css: str | None = None):

Sets the label properties.

Parameters
text:strText
font:QFont | NoneQFont
font_size:str | NoneNative font size
bold:boolEnable for bold text
italic:boolEnable for italic text
color:str | tuple[int, int, int]Text color
css:str | NoneAdditional CSS (optional)
DebugLabels: bool =

Undocumented