Specialized Widgets
Purpose-built widgets for specific use cases: calendars, QR codes, indicators, and dialogs.
Month view calendar. Click a day to select it. Emits ValueChanged with the selected day.
- year: int
- month: int
- selected_day: int
QR code display with ISO 18004 encoding. Fixed 21x21 grid (version 1, error correction level L).
- data: string
- set_data(data)
Scrolling text display. Long text scrolls horizontally for visibility.
- text: string
- font_size: int
- text_color: color
Rotating arc spinner for loading states. Backward-compatible alias of Spinner.
- running: bool
- color: color
Modal dialog with message, icon, and action buttons. Alert, confirm, input.
- title: string
- text: string
- buttons: list
- onFinished: signal
Rotating wheel picker. Continuous scrolling with snap-to-item behavior.
- model: list
- currentIndex: int
- onItemSelected: signal
Efficient list for large datasets. Recycles visible items for smooth scrolling.
- model: list
- itemHeight: int
- onItemClicked: signal
Smart scrollbar with thumb positioning. Shows content position in scrollable area.
- orientation: enum
- position: float
- policy: enum
Rotating arc loading indicator. Animated through the engine update loop.
- running: bool
- color: color
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
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
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)
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)
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)