Skip to main content

Label Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Static text display. For an interactive text input, use UI.TextBox.

class Label(Widget): ...

Constructors​

Label(Widget parent)​

def __init__(self, parent: Widget):

Create a label inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

Color​

Color: int # @property / @setter

Text color as 0x00RRGGBB. Getter returns the last value set.

Returns uint

FontSize​

FontSize: int # @property / @setter

Font size in pixels. Getter returns the last value set.

Returns int

Text​

Text: str # @property / @setter

Displayed text. null is treated as empty. Getter returns the last value set.

Returns string

TextAlignment​

TextAlignment: TextAlignment # @property / @setter

Horizontal alignment of the text inside the label bounds. Getter returns the last value set.

Returns TextAlignment