PyLabel#

class ansys.aedt.toolkits.common.ui.utils.widgets.py_label.py_label.PyLabel(text='', color='#000000', font_size=8, font_weight='bold')[source]#

Label widget with customizable elements.

Parameters:
textstr, optional

Text to be displayed on the QLabel, by default an empty string.

colorstr, optional

Color for the text, in hex format, by default ‘#000000’ (black).

font_sizeint, optional

Size for the font, by default is 8.

font_weightstr, optional

Weight for the font, by default is ‘bold’.

apply_stylesheet(color, font_size, font_weight)[source]#

Apply the custom styles defined in the class to the QLabel.

Parameters:
colorstr

Text color for the QLabel.

font_sizeint

Font size for the QLabel.

font_weightstr

Font weight for the QLabel.