Label¶
A text label for annotating forms or interfaces.






Screenshot not available
Usage¶
import toga
label = toga.Label("Hello world")
Notes¶
- Winforms does not support a text alignment value of
JUSTIFIED. If this alignment value is used, the label will default to left alignment.
Reference¶
toga.Label ¶
Label(text, id=None, style=None, **kwargs)
Bases: Widget
Create a new text label.
| PARAMETER | DESCRIPTION |
|---|---|
text
|
Text of the label.
TYPE:
|
id
|
The ID for the widget.
TYPE:
|
style
|
A style object. If no style is provided, a default style will be applied to the widget.
TYPE:
|
kwargs
|
Initial style properties.
DEFAULT:
|