How to use CheckBox and RadioButton in Toga? #2100
-
It seems that I haven't seen CheckBox and RadioButton in Toga. Are there any widgets with similar functions available? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Unfortunately, there's no radio button widget at present. This is probably the most notable "missing" widget from Toga's collection at present. You can get functionally equivalent behavior using a |
Beta Was this translation helpful? Give feedback.
-
您好,我已收到来信,会尽快给予你回复。
|
Beta Was this translation helpful? Give feedback.
toga.Switch
will be implemented as a checkbox on some platforms; there's notoga.Checkbox
because some platforms (most notably mobile platforms) tend to avoid checkboxes.Unfortunately, there's no radio button widget at present. This is probably the most notable "missing" widget from Toga's collection at present. You can get functionally equivalent behavior using a
toga.Selection
(i.e., select exactly 1 option from a list of options), but obviously that isn't visually the same.