class documentation
class QLabel2(QLabel):
Constructor: QLabel2(text, icon, icon_color, icon_size, ...)
QLabel2 class.
Method | __init__ |
Initializes a QLabel. |
Method | set |
Sets the label properties. |
Class Variable |
|
Undocumented |
def __init__(self, text: 16, 16), expand:
str
, icon: str | None
= None, icon_color: str | None
= None, icon_size: QSize
= QSize(bool
= True, align_right: bool
= False, width: int | None
= None, **kwargs):
¶
Initializes a QLabel.
Please see QLabel2.set()
for supported arguments.
Parameters | |
text:str | Text |
icon:str | None | QtAwesome icon ID (optional) |
iconstr | None | Icon color (optional) |
iconQSize | Icon size |
expand:bool | Enable to expand |
alignbool | Enable to align right |
width:int | None | Width (optional) |
**kwargs | Undocumented |
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:str | Text |
font:QFont | None | QFont |
fontstr | None | Native font size |
bold:bool | Enable for bold text |
italic:bool | Enable for italic text |
color:str | tuple[ | Text color |
css:str | None | Additional CSS (optional) |