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

Rich Shepard rshepard at appl-ecosys.com
Mon Dec 4 08:31:56 PST 2006


On Mon, 4 Dec 2006, Werner F. Bruhin wrote:

> With pubsub doing this:
>  Publisher().sendMessage('projopen', data=None)
>
> Note the case, it will kind of work, except that the subscriber will never 
> see it and it might take some time for me to catch on.
>
> But doing:
>  Publisher().sendMessage(configData.projopen, data=None)
>
> Will cause an exception when this line is hit, as "projopen" is not defined.

   The other reason for emulating a #define is that I can change that message
string in one place and it's valid everywhere I use it.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863




More information about the wxpython-users mailing list