gale.ui.label module
This file contains the implementation of the class Label: a piece of static or programmatically updatable (set_text) text.
Author: Alejandro Mujica (aledrums@gmail.com)
- class gale.ui.label.Label(x, y, text, font=None, color=None, center=False, shadowed=False, theme=None)[source]
Bases:
WidgetA piece of static (or programmatically updatable, via set_text) text, drawn with gale.text.Text.
Usage example:
label = Label(320, 40, “Rally”, center=True) label.set_text(“Rally: 3 - 2”)
- Parameters:
x (float)
y (float)
text (str)
font (Font | None)
color (Color | None)
center (bool)
shadowed (bool)
theme (Theme | None)