XRC and wx.Menu

Hi all,

I've got a problem with XRC and menu event bindings. Basically, they don't seem to work :).

I've got a small bit of example code attached, and if someone could see what is wrong that would be great.

I'm using wxPython-2.5.2.8.

Cheers,
Jonathan

menu_test.py (796 Bytes)

Jonathan Viney wrote:

Hi all,

I've got a problem with XRC and menu event bindings. Basically, they don't seem to work :).

I've got a small bit of example code attached, and if someone could see what is wrong that would be great.

I'm using wxPython-2.5.2.8.

Cheers,
Jonathan

Ah, the problem just came to me as I pressed send :). I was binding the event to the menubar, instead of the frame. Oops.

Cheers,
Jonathan