Documentation error in wxRadioButton?
Stephan Rose
kermos at somrek.net
Thu Sep 6 08:10:44 PDT 2007
On Thu, 2007-09-06 at 13:51 +0200, koen at vermeer.tv wrote:
> >>Returns true if the radio button is depressed, false otherwise.
> >>Isn't that backwards? I mean, shouldn't it be true for pressed (or
> >>selected, as it is called in the description of SetValue()) and false
> >>otherwise?
> > depressed == pressed // depressed != de-selected
> > // depressed != unpressed
>
> I see. That is, I missed the first step. My reasoning was this: I thought
> depressed only means 'press down'. For a button, which looks depressed if
> you press it, this works out as 'depressed == pressed'. For a radiobutton,
> there is no 'press down'; rather, it's selected or not. So, depressed had
> to mean something else: depressed -> de-pressed -> de-selected.
>
> Anyway, I'm not yet sure about 'depressed == pressed'; I'll leave that to
> the native speakers. But thanks for the clarification!
Yea either depressed or pressed is fine. =)
Stephan
More information about the wx-users
mailing list