Event Handling

Peter Hansen <peter <at> engcorp.com> writes:

What other ways are there, other than the pre-recent
version wxPython approach that looks something like this?

-Peter

I came across:
Connect
Bind
EVT_
wx.lib.evtmgr.EventManager

Being new to wx, and the somewhat scattered documentation, it is not always easy
to recognize the latest-greatest. Also, the helper tools you can use, like
wxGlade or wxDesigner, generate the older style and even among those tools
things are not consistent. So it is not obvious, at least to me.

But, as you say, Bind seems to be the way to go unless you want a more loosely
coupled design, if, for example, you want to be able to use another GUI toolkit.
In that case it appears that the EventManager is the right choice.

I did find this also:
http://mail.python.org/pipermail/python-list/2004-April/214995.html

Peace,
David S.