[wxPython-dev] Separating pubsub?

Robin Dunn robin at alldunn.com
Wed Jun 13 12:48:31 PDT 2007


Bill Baxter wrote:
> Hi all,
> The wx.lib.pubsub module looks to be completely independent of
> wxWidgets/wxPython.  It seems to be a useful library in and of its own
> right.  What would you think of breaking it out into a separately
> downloadable entity?

It's worth considering.

> 
> I'm thinking of something along the lines of zope.interface.  It's
> part of zope, but you can download it by itself and use it apart from
> any of the rest of zope.
> 
> It could still be in the wx namespace, but say, wx.pubsub instead of
> wx.lib.pubsub.

Unfortunately that would still pull in wx since wx/__init__.py is where 
the core modules are imported.


> I was thinking it might be nice to use both in and out of wxPython,
> but pulling in a dependency on wxPython just for one file with 800
> lines of pure python code ain't going to fly.

It wouldn't hurt my feelings at all if you just copy pubsub.py into your 
non-gui app's directory.  ;-)


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-dev mailing list