From: Stephen W. <go...@co...> - 2005-06-30 01:48:58
|
Mike C. Fletcher wrote: > Stephen Waterbury wrote: > ... >>So anyway, what I find perplexing is that the prints in >>simple_sample.py all say "Sending [signal] *to* first object" >>(emphasis mine) ... but according to everything else I see >>there, the first object (which I assume refers to >>ourObjects[0]) is the *sender*, not the receiver (the >>receivers being the callables), so I would have expected >>the prints to say "Sending [signal] *from* first object" ... >>am I wrong? > ... > It really should have read "from", I just mis-typed :) . I've fixed it > locally, will see about getting it uploaded in fixed form when I get a > chance. Great -- I'm glad my sanity was not threatened (at least in that one area! ;). BTW, I just started using PyDispatcher this week, and I must say IT ROCKS!! :) My first use of it is to dispatch a "state changed" signal to components of my GUI app (the receiver is a function 'onStateChange' that checks the 'state' dictionary -- a module-level instance that all the components import), so now all my gui windows that have a little connector icon on the bottom right to show whether the app is "online" or not are all synchronized. (I was actually low enough to steal mozilla's little connector icons, too ;). I'm easily amused! :) But it was very cool how *easy* it was to implement with PyDispatcher ... I really must write a testimonial or something! Cheers, Steve |