Keyboard Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Virtual on-screen keyboard. Attach to a UI.TextBox via Keyboard.SetTarget so taps on keys type into it. Positions itself at the bottom half of the display by default; override via inherited X / Y / Width / Height.
class Keyboard(Widget): ...
Constructors
Keyboard(Widget parent)
def __init__(self, parent: Widget):
Create a virtual keyboard inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Methods
ClearTarget()
def ClearTarget(self) -> None:
Detach any current target so key presses go nowhere.
SetTarget(TextBox textbox)
def SetTarget(self, textbox: TextBox) -> None:
Route key presses into textbox.
| Parameter | Type | Description |
|---|---|---|
textbox | TextBox | Target text box; its text updates on each key. |