wxRadioBox : start with none selected?
Fri Aug 2 07:03:21 EDT 2002
Thanks for your reply Tim,
Unfortunately I'd have to tell them: "Please pick one, and if you're
going to pick number one (which is already marked for you), please
choose number two first, and then go back and select number one, so
that I can have it on record that you chose number one."
I'll look into radiobuttons...
On Thu, 01 Aug 2002 22:30:38 -0700, Tim Roberts <timr at probo.com>
>chris <> wrote:
>>how do i set a radiobox to default to no choice until the user
>>chooses? i need the "mouse click" for further processing, and if it
>>stays on its default, it seems there is no
>>i realize the selection can be passed even if the user does not
>>actively click on it, but I have no way of knowing if they have agreed
>>to the default, or not gotten that far yet - each selection leads to
>>other choices in real time, so it's not a "submit when finished"
>Not with a wxRadioBox. It automatically chooses a default for you. Have
>you thought about adding another option at the top saying "Please pick
>>this seems like an option that i can't find, since it seems common you
>>might not want to predispose the user to a choice. something along
>>the lines of wxRadioBox.SetSelection(none).
>Actually, it IS rather uncommon. Folks would often forget to make that
>default choice when using radio buttons, so the designers of wxRadioBox
>made it automatic.
>>ps, if thtis was IMPOSSIBLE, i could fall back on using two radio
>>buttons instead of each radio box, since they start unselected, but
>>that might be a huge pain, and would be giving up.
>Yes, that's another option.
More information about the Python-list