because I work with XRC and need to take care of i18n the labels on my menus are not a given. Also because my app is multi-threaded I have set up events between my UI and the rest of my app.
So then a menu item is clicked I need to get back to the rest of the app either the menu that was clicked on and the item index or the name of the menu item (and possibly the name of the menu).
Since these things currently do not exist in wxPython I will make a workaround. However eventually it would be nice if I could do this directly.
Paul Sijben
···
--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com
because I work with XRC and need to take care of i18n the labels on my menus are not a given. Also because my app is multi-threaded I have set up events between my UI and the rest of my app.
So then a menu item is clicked I need to get back to the rest of the app either the menu that was clicked on and the item index or the name of the menu item (and possibly the name of the menu).
Since these things currently do not exist in wxPython I will make a workaround. However eventually it would be nice if I could do this directly.
Something like this in the menu event handler should work for getting the text: