[wxPython-users] A few questions....
James Matthews
nytrokiss at gmail.com
Thu Mar 29 20:00:48 PDT 2007
Ok i am sorry for not including these two lines of code...
ID_ABOUT =3D wx.ID_ABOUT
ID_EXIT =3D wx.ID_EXIT
Now about the event handlers i am looking for a global windows message que
so instead of making an event handler for a menu and the window all i need
to grab is one of them!
Thanks
On 3/29/07, Josiah Carlson <jcarlson at uci.edu> wrote:
>
>
> "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 =3D wx.NewId()
> ID_EXIT =3D 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
>
>
-- =
http://www.goldwatches.com/watches.asp?Brand=3D39
http://www.wazoozle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200703=
29/c480b4dd/attachment.htm
More information about the wxpython-users
mailing list