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.
···
--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Vancouver BC V6T 1Z3
CANADA
Email: Anthony.Floyd@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
That sounds like a quote of the week if I ever read one.
- Josiah
···
"Anthony M. Floyd" <Anthony.Floyd@convergent.ca> wrote:
When I refactored everything to pubsub, life
became sunshine and unicorns.
Several hours of refactoring later (unusually enjoyable, since it involved removing most of the least satisfactory portions)… it is almost like what he said. Except for two things: instead of sunshine and unicorns there is beer and chocolate chip cookies. I’ll settle for that.
Viva the better, more intuitive plumbing! There might be something a little wrong in the documents department if it took me 2 months of playing with wxWidgets before I encountered wx.lib.pubsub.
···
On 6/1/07, Josiah Carlson jcarlson@uci.edu wrote:
“Anthony M. Floyd” Anthony.Floyd@convergent.ca wrote:
When I refactored everything to pubsub, life
became sunshine and unicorns.
That sounds like a quote of the week if I ever read one.
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Several hours of refactoring later (unusually enjoyable, since it involved
removing most of the least satisfactory portions)... it is almost like what
he said. Except for two things: instead of sunshine and unicorns there is
beer and chocolate chip cookies. I'll settle for that.
Viva the better, more intuitive plumbing! There might be something a little
wrong in the documents department if it took me 2 months of playing with
wxWidgets before I encountered wx.lib.pubsub.
If it seems harder than it should be, it probably is. Either ask around
or dig for it yourself.
- Josiah
···
"Eric Ongerth" <ericongerth@gmail.com> wrote:
On 6/1/07, Josiah Carlson <jcarlson@uci.edu> wrote:
>
>
> "Anthony M. Floyd" <Anthony.Floyd@convergent.ca> wrote:
> > When I refactored everything to pubsub, life
> > became sunshine and unicorns.
>
> That sounds like a quote of the week if I ever read one.
>
>
> - Josiah
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
>