Input Widgets

Specialized input controls for text entry, selection, and on-screen keyboard input.

VirtualKeyboard

On-screen QWERTY keyboard with text/num/sym layers. portrait and portrait_small render a compact 5-column by 7-row grid (alphabetical rows a-e through u-y plus a modifier row).

  • orientation: landscape|portrait|portrait_small
  • keyboard_layout: string (QWERTY)
TextArea

Multi-line text input with scroll support. Accepts paragraphs of text.

  • text: string
  • placeholder: string
  • acceptRichText: bool
  • onAccepted: signal
ComboBox

Merged dropdown/combo box widget. editable=False (default) is the classic select-only DropDown; editable=True adds keyboard text input. DropDown is a backward-compatible alias of ComboBox.

  • text: string
  • options: list
  • selected_index: int
  • editable: bool (default False)
  • font_size: int
Spinbox

Numeric input with increment/decrement buttons. easytouch renders a finger-friendly layout with full-height minus/plus side buttons. label is drawn outside the widget bounds.

  • value: int
  • min_value: int
  • max_value: int
  • step: int
  • easytouch: bool (default False)
  • label: string
  • left_hand_text: bool
ButtonMatrix

Grid of buttons with custom labels. Numeric keypad, function keys, or custom layout.

  • buttons: list
  • columns: int
  • onClicked: signal
SearchField

Text field optimized for search. Includes clear button and search icon.

  • text: string
  • placeholder: string
  • onQueryChanged: signal
Roller

Scrolling selector wheel. Pick from a list by scrolling to the desired item.

  • model: list
  • selectedIndex: int
  • onSelected: signal
Tumbler

Spinnable wheel picker. Similar to Roller with continuous wrap-around behavior.

  • model: list
  • currentIndex: int
  • wrapping: bool
Keyboard

Physical keyboard input handler. Maps key events to widget actions.

  • layout: string
  • onKeyPressed: signal
  • onKeyReleased: signal
ColorPicker

Color picker with three R/G/B Slider children, eight preset swatches and a live preview. Emits ValueChanged with the picked color.

  • color: (r, g, b)
VirtualKeyboardInputDialog

Modal full-screen keyboard dialog. target binds the originating TextField and typed text echoes into it live. Enter confirms (text stays); the cancel x or Escape restores the original text. Emits Confirmed and Cancelled.

  • target: TextField
  • orientation: landscape|portrait|portrait_small
  • title: string