wx.ITEM_RADIO in wx.menu

"Jürgen Waser" JuergenWaser at gmx.at
Wed Dec 12 02:16:07 PST 2007


Hello,

I have a menu that is a submenu of another menu and shows a short list of numbers and a "set number" entry. All these menuitems are of kind wx.ITEM_RADIO. Also, each of them is connected to a callback function.
If I click an entry that is already checked, the function is not called. Only 
if the item is not checked, the event is handled.

Additionally, in my toolbar, there is a tool that if clicked opens the same 
menu as a popupmenu. (the tool has a reference to the menu)
In this case it doesn't matter whether an item is checked or not, the event handler function is called anytime.

Why is that? How can I achieve the same behaviour for my submenu?

Thanks
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




More information about the wxpython-users mailing list