[wxPython-users] Any way to have a RadioBox or group of RadioButtons default to no selection?

EyePulp eyepulp at eyepulp.net
Sun Jan 14 09:33:12 PST 2007


On 1/14/07, Peter Decker <pydecker at gmail.com> wrote:
> On 1/14/07, EyePulp <eyepulp at eyepulp.net> wrote:
>
> > Howdy folks;
> > Google's been less than forthcoming on this one, and it seems like a
> > reasonably simple desire.  I essentially need to force the user to
> > decide Yes/No, and not presuppose an choice one way or the other.
> >
> > I've tried both radiobox and a pair of radiobuttons, but any grouing
> > of radio controls seems to force its first member into a selected
> > status.
> >
> > Help would be greatly appreciated.
>
> That would be really simple in Dabo. Just use a dRadioGroup control,
> and set its PostionValue property to None. I don't know why this
> wouldn't work in raw wxPython.
>
> --
>
> # p.d.
>

Hey Peter, thanks for the response;
I figured this out through some better crafted google searches - it
was ridiculously simple (not surprisingly):  radioObj.SetValue(False)

Shockingly it was a post made by Robin... What are the odds?  =)

-- 
-----------------------------
  e  y  e  p  u  l  p
-----------------------------




More information about the wxpython-users mailing list