[wxPython-users] Re: MVP and pubsub?

Werner F. Bruhin werner.bruhin at free.fr
Tue Dec 26 03:58:09 PST 2006


Hi Basil,

Basil Shubin wrote:
> ...
> Thanks for reply. You test code works excellent. But problem is that I 
> want subscribe to message inside MeaningInteractor class and process 
> catched message here, but with a code I wrote (attachment) it's not 
> working :-( Yes I can successfuly call MyPrint from data/publisher.py 
> in MeaningInteractor, but the same function placed inside 
> MeaningPublisher won't process :-(
>
> I'm totally confused here. Please, needs your help.
This already confused me yesterday, and it does not get much better today.

Just for testing I added a sendmessage as follows to class MeaningInteractor
pub.publisher.sendMessage('word_select', 'mytest')

This worked, i.e. the MyPrint is called in both publisher and in 
MeaningInteractor.

So, I think it has something to do with what is mentioned in 
wx.lib.pubsub.py doc string for subscribe (around line 637), i.e. there 
is no hard reference for MeaningInteractor.

But I can't figure it out.  Hopefully someone with better know how will 
enlighten us.

Werner



>
> Thanks for any help.
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org






More information about the wxpython-users mailing list