class controls.Label(Widget)

A Label displays a piece of static text in a chosen font and colour.

Constructor

Label(text, font = resource.default_font)
Initializes the label with the given text and font. The label's rect is initially made just large enough to contain the text, with its top left corner at 0, 0.

Attributes

font
The font in which to display the text.

fg_color
The colour in which to display the text.

---