Custom Event Handling

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!