Problem with custom events in wxpython

Frank Niessink frank at niessink.com
Sun May 11 11:27:26 EDT 2008


Hi Jimmy,

2008/5/11 Jimmy <mcknight0219 at gmail.com>:
> hi, all
>
> I'm having a problem with creating custom events in wxpython.
>
> I have a class A handling some data processing work and another class
> B of GUI matter. I need GUI to display information when data in A is
> updated.
> I know cutom events in wxpython may work.

You may want to look at the pubsub module. Available as wx.lib.pubsub
in wxPython: http://www.wxpython.org/docs/api/wx.lib.pubsub-module.html,
and also available separately on PyPI:
http://pypi.python.org/pypi/PyPubSub/

Cheers, Frank



More information about the Python-list mailing list