Label Documentation¶
Label class¶
- class pygameyagui.Label(toolbox, label)¶
This class creates a Label widget.
- Parameters:
toolbox (
pygameyagui.Toolbox) – The toolbox that will host the widget.label (str) – The text to be shown in the Label widget.
Inheritance
Label class inherits from Widget class.
Label methods¶
Nothing to see here
Label class has no methods.
Label properties¶
- property Label.alignment¶
Get or set the label text alignment (str).
Note: Accepted values are left, center or right. Default value is center.
Label constants¶
- constants.LABEL_MIN_SIZE_FACTOR = 1¶
- constants.LABEL_MAX_SIZE_FACTOR = 1¶
- constants.LABEL_DEFAULT_SIZE_FACTOR = 1¶