[wxPython-users] A few questions....

Josiah Carlson jcarlson at uci.edu
Thu Mar 29 19:17:51 PDT 2007


"James Matthews" <nytrokiss at gmail.com> wrote:
> Hi guys
> 
> I have a few questions regarding the wxpython code i am writing..
[snip]
> Ok here come the questions..
> 
> 1. Whats the problem with wx.EVT_MENU

The modern style is:
    self.Bind(wx.EVT_MENU, callable, id_or_object)

But the real issue, which you would discover if you read the exception
text, is that ID_ABOUT and ID_EXIT are not defined.  Try placing the
following somewhere before you refer to it:
    ID_ABOUT = wx.NewId()
    ID_EXIT = wx.NewId()

> 2. Are there any global event handerlers

If you mean "are there things that respond to events", yes.  Resizing a
window results in an event being posted, which certain windows respond
to by default.  There are others, but I don't know all of them, and it
would be a waste of both of our time for me to enumerate them.


 - Josiah





More information about the wxpython-users mailing list