[wxPython-users] Re: "Pushing" Data to Modules

Werner F. Bruhin werner.bruhin at free.fr
Sat Dec 2 10:56:19 PST 2006


Hi Rich and Donn,

Not that I am expert on this but here is a revised version of what I =

used to get a hang of pubsub.

- mypublisher.py - setup constants and instantiate the pubsub stuff
- pubsubApp.py - Boa app module
- pubsubtest.py - a wx.Frame with a statusbar and a button, subscribes =

to statustext messages, when button is pressed it does some publishing =

stuff, and calls up a dialog
- dialog1.py - simple dialog with a button, when pressed sends a message =

to statusbar

Maybe something along these lines (with better doc strings then I do) =

should be on the wiki to help people going with pubsub.

Hope this helps
Werner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pubsubtest.py
Type: application/x-python
Size: 2191 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061=
202/230fa2f6/pubsubtest.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dialog1.py
Type: application/x-python
Size: 1068 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061=
202/230fa2f6/Dialog1.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mypublisher.py
Type: application/x-python
Size: 1113 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061=
202/230fa2f6/mypublisher.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pubsubApp.py
Type: application/x-python
Size: 515 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061=
202/230fa2f6/pubsubApp.bin


More information about the wxpython-users mailing list