[wxpython-users] radio item in wx.Menu does not fire event if
already selected
"Jürgen Waser"
JuergenWaser at gmx.at
Thu May 22 02:10:14 PDT 2008
Thanks,
But: I do not use radio buttons but radio menu items. They cannot be bound to left clicks. Your suggestion thus is not working for me. Thanks anyway.
Any other ideas?
-------- Original-Nachricht --------
> Datum: Thu, 22 May 2008 03:24:57 -0400
> Von: "C M" <cmpython at gmail.com>
> An: wxpython-users at lists.wxwidgets.org
> Betreff: Re: [wxpython-users] radio item in wx.Menu does not fire event if already selected
> On Thu, May 22, 2008 at 2:40 AM, Gre7g Luterman
> <gre7g.luterman at gmail.com> wrote:
> > On 5/21/08, "Jürgen Waser" <JuergenWaser at gmx.at> wrote:
> >>
> >> One of my menus has a list of radio items to select a number. A further
> >> radio
> >> item labelled "Custom" opens a dialog to set a custom number. If
> "Custom"
> >> is not chosen, selecting it generates an event and opens the dialog. If
> >> "Custom" is already selected however, clicking on it again has no
> effect at
> >> all. Does that mean, that radio menu items do not fire command events
> if
> >> they are already selected? Is there a workaround?
> >
> >
> > Yup. If you click on a radio button that is already selected, then you
> > haven't really done anything.
> >
> > Try wx.EVT_LEFT_UP instead.
> >
> > Gre7g
>
> I think it does work, actually, if the event is propagated with
> event.Skip(). See this thread:
>
> http://www.lameriada.info/wxpython-users/wxpython-users-Can-a-group-of-radio-buttons-be-used-as-aone-click-4ae.html
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the wxpython-users
mailing list