[wxpython-users] radio item in wx.Menu does not fire event if
already selected
"Jürgen Waser"
JuergenWaser at gmx.at
Thu May 22 01:46:02 PDT 2008
Thanks for your proposal. Do you think there is a way to keep the associated keyboard shortcut as well?
-------- Original-Nachricht --------
> Datum: Thu, 22 May 2008 00:40:58 -0600
> Von: "Gre7g Luterman" <gre7g.luterman 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 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
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
More information about the wxpython-users
mailing list