awsc.termui.dialog.DialogFieldCheckbox
- class awsc.termui.dialog.DialogFieldCheckbox(label, checked=False, color=Color(Palette8Bit, 220, None), selected_color=Color(Palette8Bit, 0, 220))
A checkbox toggle on the dialog. While selected, hitting the enter key will toggle the checked state of the checkbox.
- Attributes:
- labelstr
The text to display next to the checkbox.
- colorawsc.termui.color.Color
The color of the checkbox when not selected.
- selected_colorawsc.termui.color.Color
The color of the checkbox when selected.
- checkedbool
Whether the checkbox is checked.
- char_uncheckedstr
The checkbox display character for when it is not checked.
- char_checkedstr
The checkbox display character for when it is checked.
Methods
input
(inkey)Input handler method for the field.
paint
(x0, x1, y[, selected])Paint callback for the field.
- __init__(label, checked=False, color=Color(Palette8Bit, 220, None), selected_color=Color(Palette8Bit, 0, 220))
Methods
__init__
(label[, checked, color, selected_color])input
(inkey)Input handler method for the field.
paint
(x0, x1, y[, selected])Paint callback for the field.
Attributes
value
Read-only property for retrieving a generalized value of the field.