Label

class omni.ui.scene.Label

Bases: AbstractShape

Defines a standard label for user interface items

Methods

__init__(self, arg0, **kwargs)

A standard label for user interface items.

Attributes

alignment

This property holds the alignment of the label's contents.

color

The color of the text.

size

The font size.

text

This property holds the label's text.

__init__(self: omni.ui_scene._scene.Label, arg0: str, **kwargs) None

A standard label for user interface items.

### Arguments:

`text :`

The string with the text to display

`kwargsdict`

See below

### Keyword Arguments:

`color`

The color of the text.

`size`

The font size.

`alignment`

This property holds the alignment of the label’s contents. By default, the contents of the label are left-aligned and vertically-centered.

`text`

This property holds the label’s text.

`gesture`

All the gestures assigned to this shape.

`gestures`

All the gestures assigned to this shape.

`visible`

This property holds whether the item is visible.

property alignment

This property holds the alignment of the label’s contents. By default, the contents of the label are left-aligned and vertically-centered.

property color

The color of the text.

property size

The font size.

property text

This property holds the label’s text.