[wxPython-users] Custom Event Handling
Robin Dunn
robin at alldunn.com
Mon Jan 1 12:22:30 PST 2007
Murat Erten wrote:
> It works when I subscribe to MyClass from a wx.Frame but it doesn't
> work on a custom class extending from wx.EvtHandler as I said before
> on top of the page. I wonder why ?
I don't know, I don't see anything wrong from just reading your code
snippets. Maybe a fully working example would help...
>
> Is there any other easy way of publishing events ?
Yes. Since you are wanting to fully manage the publish and subscribe
process and are using custom events, then there is really no reason at
all to use the wx event system. You're just reinventing what is already
in the wx.lib.pubsub module.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list