TextNode

A widget representing a basic text label.

  • Special Attributes
Name Type Description
geometry Rect A rectangle describing the position and dimensions of the widget
text String The widget’s display text
foreground Color Widget foreground color
background Color Widget background color
border-color Color Widget border color
border-width Number Widget border thickness in pixels
font Font Widget display font
alignment Alignment Display text alignment.
visibility String A pv that determines the visibility of the widget, visibility is turned off if the PV’s value is zero. This logic is inverted if the !Not tag is used instead of String
  • Examples
- !Text
    geometry: 5x0 x 120x20
    text: "Label Text"
    font: -Liberation Sans -Bold -12
    alignment: Center

Text widgets can be styled with foreground, background, and border colors:

ScreenTitle: !HStretch:Text
    geometry: 0x0 x 0x45
    foreground: *white
    background: *header_blue
    border-color: *black
    border-width: 3
    text: "Device Controls"
    font: "-Liberation Sans -Bold -16"
    alignment: Center