label widget#

<label>#

A simple text element#

Parameters#

text: string

Simple text

translation: string

Translated by key

size: float (default: 14)

Text size in pixel units

wrap: “true” | “false” (default: “false”)

Enable text wrapping?

color: #FFAABB | #FFAABBCC

align: “left” | “right” | “center” | “justified” | “end”

weight: “normal” | “bold”

shadow: #112233 | #112233CC (default: None)

shadow_x: float (default: 1.5)

Horizontal offset of the shadow from the original text. Positive is right.

shadow_y: float (default: 1.5)

Vertical offset of the shadow from the original text. Positive is down.

parent_color: “foreground” | “background” | “ignore” (default: “foreground”)

Alter color dynamically based on the parent (button)?