Skip to main content

TextBox Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Single-line editable text input. Pair with a UI.Keyboard for on-screen typing.

class TextBox(Widget): ...

Constructors​

TextBox(Widget parent)​

def __init__(self, parent: Widget):

Create a text box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

Placeholder​

Placeholder: str # @property / @setter

Hint text shown when TextBox.Text is empty. null is treated as empty. Getter returns the last value set.

Returns string

Text​

Text: str # @property / @setter

Current text content. Reads back live from LVGL (up to 255 UTF-8 bytes).

Returns string

Events​

ValueChanged​

ValueChanged # += / -= handler

Fires on every character insertion or deletion. Runs on the UI thread.