Hi! So, looking for a pubsub tutorial, I found http://www.blog.pythonlibrary.org/2010/06/27/wxpython-and-pubsub-a-simple-tutorial/, where I read “The newest pubsub has a slightly different API which you can check out in its cookbook.” I followed the link and read "Get the version of pubsub used by your application: start a python interpreter session; copy your app’s pubsub import statement; for instance
from wx.lib.pubsub import pub
If the printout starts with “1” [mine is 1.1.200904.r159]…Do the following:
- add a
from wx.lib.pubsub import setupv1
in your application’s
startup script, before the first pubsub import - confirm that all works well…" etc., etc.
The 1.1.200904 result was obtained typing from wx.lib.pubsub import pub at the shell prompt in SPE; if I launch a separate session and type simply import pubsub, I get No module named pubsub–clearly the pubsub I have is tied to my wxpython install, and it’s a V1 edition. However, in the (wx) app I’m writing, i.e., the one in which I want to use pubsub, I haven’t yet actually started using it, so I’d just as soon start using V3 from the outset. A) Can I do this using wxpython 2.8.11.0 (i.e., are there incompatibilities between that version of wxpython and pubsub3)? B) If yes, how do I install pubsubV3 and configure my wx app so that V3 is found and used instead of the V1 that came w/ my 2.8.11.0 wxpython edition)?
Thanks for the help.