How do I send an event from a child window to its parent?
I think something like this might work:
self.GetParent().AddPendingEvent(my_event)
How do I trap my_event in the parent window class?
How do I send an event from a child window to its parent?
I think something like this might work:
self.GetParent().AddPendingEvent(my_event)
How do I trap my_event in the parent window class?
sashan wrote:
How do I send an event from a child window to its parent?
I think something like this might work:
self.GetParent().AddPendingEvent(my_event)
How do I trap my_event in the parent window class?
It depends on the ID and eventType that are in my_event. Look at some of the EVT_ functions, they just call window.Connect with an eventType and depending on the type a source ID. You can do the same thing with your event too.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!