Label¶
A text label.







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
¶
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:
|