Specialized Widgets

Purpose-built widgets for specific use cases: calendars, QR codes, indicators, and dialogs.

Calendar

Month view calendar. Click a day to select it. Emits ValueChanged with the selected day.

  • year: int
  • month: int
  • selected_day: int
QRCode

QR code display with ISO 18004 encoding. Fixed 21x21 grid (version 1, error correction level L).

  • data: string
  • set_data(data)
MarqueeText

Scrolling text display. Long text scrolls horizontally for visibility.

  • text: string
  • font_size: int
  • text_color: color
BusyIndicator

Rotating arc spinner for loading states. Backward-compatible alias of Spinner.

  • running: bool
  • color: color
MessageDialog

Modal dialog with message, icon, and action buttons. Alert, confirm, input.

  • title: string
  • text: string
  • buttons: list
  • onFinished: signal
Wheel

Rotating wheel picker. Continuous scrolling with snap-to-item behavior.

  • model: list
  • currentIndex: int
  • onItemSelected: signal
InfiniteList

Efficient list for large datasets. Recycles visible items for smooth scrolling.

  • model: list
  • itemHeight: int
  • onItemClicked: signal
Scroller

Smart scrollbar with thumb positioning. Shows content position in scrollable area.

  • orientation: enum
  • position: float
  • policy: enum
Spinner

Rotating arc loading indicator. Animated through the engine update loop.

  • running: bool
  • color: color
FileDialog

File/folder picker dialog with real Button children. Directories are entered and files selected by click. The listing scrolls via mouse wheel and a ScrollBar. Emits ValueChanged with the picked path, Cancelled on dismiss.

  • mode: open|save|folder
  • title: string
  • current_dir: string
  • filter_ext: list
Tooltip

Dark rounded hint bubble, auto-sized to fit its text. Hidden by default. Never intercepts input events.

  • text: string
  • visible: bool (default False)
  • background_color: color
  • text_color: color
  • font_size: int
Watch

Analog clock face with hour, minute and second hands plus tick marks.

  • hours: int (0-23)
  • minutes: int (0-59)
  • seconds: int (0-59)
  • show_seconds: bool
  • show_ticks: bool
  • set_time(h, m, s)
Digit7

Single 7-segment numeric digit with lit and unlit segment colors.

  • digit: int (0-9)
  • color: color
  • off_color: color
  • thickness: int (0 = auto)
  • set_digit(value)
MatrixChar

Single 5x7 dot-matrix alphanumeric character, like an embedded LED matrix.

  • char: string (one character)
  • color: color
  • off_color: color
  • gap: int (0 = auto)
  • set_char(value)