Skip to content

How to use CheckBox and RadioButton in Toga? #2100

Answered by freakboy3742
wanglifeng95 asked this question in Q&A
Discussion options

You must be logged in to vote

toga.Switch will be implemented as a checkbox on some platforms; there's no toga.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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@wanglifeng95
Comment options

@Kuna42
Comment options

@freakboy3742
Comment options

Answer selected by wanglifeng95
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants