A text label for annotating forms or interfaces.
.. rst-class:: widget-support
.. csv-filter:: Availability (:ref:`Key <api-status-key>`) :header-rows: 1 :file: ../../data/widgets_by_platform.csv :included_cols: 4,5,6,7,8,9,10 :exclude: {0: '(?!^(Label|Component)$)'}
import toga
label = toga.Label("Hello world")
- Winforms does not support an alignment value of
JUSTIFIED
. If this alignment value is used, the label will default to left alignment.
.. autoclass:: toga.Label :members: :undoc-members: