[wxPython-users] reverse event handling?

Anthony M. Floyd Anthony.Floyd at convergent.ca
Fri Jun 1 15:37:40 PDT 2007


Eric Ongerth wrote:
> Hello,
> I've had good luck so far with the wxWidgets/wxPython event handling 
> framework.  Most of the time I'm using it as intended and it's really 

then Robin Dunn wrote:
 
> As Josiah mentioned pubsub is what you are looking for.  Then 
> hierarchy doesn't matter at all, the target doesn't even have 
> to be a widget.  You just have some part(s) of your program 
> subscribe to a particular topic and have some other part(s) 
> of your program publish messages with that topic.  All the 
> plumbing is taken care of by pubsub.

Amen to that.  I was using custom wx events for signalling data changes
to various parts of my GUI, but ran into the same problem that Eric did.
Thing were getting messy.  When I refactored everything to pubsub, life
became sunshine and unicorns. 

A>

--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Vancouver BC  V6T 1Z3
CANADA

Email: Anthony.Floyd at convergent.ca | Tel:   604-822-9682
WWW:   http://www.convergent.ca    | Fax:   604-822-9659  

CMT is hiring: See http://www.convergent.ca for details






More information about the wxpython-users mailing list