class documentation

class QLabel2(QLabel):

View In Hierarchy

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

Initializes a QLabel.

Please see QLabel2.set() for supported arguments.

Parameters
text:strText
icon:Optional[str]QtAwesome icon ID (optional)
icon_color:Optional[str]Icon color (optional)
icon_size:QSizeIcon size
expand:boolEnable to expand
align_right:boolEnable to align right
width:Optional[int]Width (optional)
**kwargsUndocumented
def set(self, text, font=None, font_size=None, bold=False, italic=False, color='black', css=None):
Sets the label properties.
Parameters
text:strText
font:Optional[QFont]QFont
font_size:Optional[str]Native font size
bold:boolEnable for bold text
italic:boolEnable for italic text
color:Union[str, Tuple[int, int, int]]Text color
css:Optional[str]Additional CSS (optional)
DebugLabels: bool =

Undocumented