Label#

A text label for annotating forms or interfaces.

../../../_images/Label.jpeg

Availability#

macOS

GTK

Windows

iOS

Android

Web

y

y

y

y

y

y

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.

  • factoryDeprecated

property text#

The text displayed by the label.