[wxPython-users] Re: MVP and pubsub?

Werner F. Bruhin werner.bruhin at free.fr
Tue Dec 26 07:05:13 PST 2006


Hi Basil,

Basil Shubin wrote:
> Hi Werner,
>
> Werner F. Bruhin пишет:
>> 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.
>
> After I add:
>
> self.viewer = MeaningViewer(self.parent, sizer)
> self.interactor = MeaningInteractor()
> MeaningPresenter(None, self.viewer, self.interactor)
>
> in WordViewer class it starts working! Thanks for the clue!
Ah, I did not do the "self.",  - stupid me!
>
>> But I can't figure it out.  Hopefully someone with better know how 
>> will enlighten us.
>
> But I still don't understand why it's works for:
>
> presenter.WordPresenter(model.getDemoWords(), viewer.WordViewer(self),
>                         interactor.WordInteractor())
>
> in a MainFrame class??? Any idea?
You only do sendMessage in the WordInteractor, there is no subscribe in 
there, is there?

Werner


>
> Anyway big thanks!
>
>
> ---------------------------------------------------------------------
> 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