Label#
A text label for annotating forms or interfaces.

Availability#
Usage#
import toga
label = toga.Label('Hello world')
Reference#
- class toga.widgets.label.Label(text, id=None, style=None, factory=None)#
A text label.
Inherits from
Widget
.- Parameters:
text – Text of the label.
id – The ID for the widget.
style – A style object. If no style is provided, a default style will be applied to the widget.
factory – Deprecated
- property text#
The text displayed by the label.