subclassing wx.Menu and getting menu choice events delivered

Hi,

subject says it all. I read somewhere that menu events are normally delivered
as EVT_MENU to the parent popping up the Menu.

I need to subclass a menu, and handle its events as well. How do I do that?

self.Bind(EVT_MENU, self.HandleMenuEvent, ..) does not work, my
HandleMenuEvent() does not get any events delivered.

Thank,
Antonio

If self is the menu then I don't think you can due to the way that wxMenu is implemented.

···

On 12/12/10 1:39 PM, Antonio Gom�z Soto wrote:

Hi,

subject says it all. I read somewhere that menu events are normally
delivered
as EVT_MENU to the parent popping up the Menu.

I need to subclass a menu, and handle its events as well. How do I do that?

self.Bind(EVT_MENU, self.HandleMenuEvent, ..) does not work, my
HandleMenuEvent() does not get any events delivered.

--
Robin Dunn
Software Craftsman