[wxPython-users] Events disappearing in wxPython-2.6.3.3 and 2.8.0.1 ?

Duncan Gibson duncan.gibson at xs4all.nl
Thu Feb 1 12:16:04 PST 2007


Robin Dunn wrote:
> I don't see anything wrong in the code, and it does work for me with the
> 2.6 and 2.8 versions I tried it with.

I went back to try the code with wxPython-2.6.3.3 on Lunar Linux,
and the events don't appear to get through. I tried Eli's suggestion
of replacing

        newId = wx.NewId()
        fileMenu.Append(newId, "&New", " new thingy ")
        wx.EVT_MENU(self, newId, self.OnNew)

with

        newMenuItem = fileMenu.Append(wx.ID_ANY, "&New", " new thingy ")
        self.Bind(wx.EVT_MENU, self.OnNew, newMenuItem)

but that didn't appear to make any difference. I've been though the loop
of trying to install wxPython-2.8.1.1 (again) and still couldn't get it
to work. All I can think of is that I'm missing some subsidiary library,
or I have an incompatible version. For example, I'm running Xfce and not
Gnome, so it could be that some option has been disabled somewhere along
the line, and I don't know whether I'll be able to work out what. Still,
it'll keep me off the streets at night :-)

Cheers
Duncan






More information about the wxpython-users mailing list