Would please anybody pass me the full syntax to raise an event in wxPython?
Thanks
Raffaello Barella wrote:
Would please anybody pass me the full syntax to raise an event in wxPython?
self.GetEventHandler().ProcessEvent(theEvent)
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
This is from the wxWidgets docs,
http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html#wxevthandlerpro
cessevent
but does it apply?
"Remarks
"Normally, your application would not call this function: it is called in
the wxWidgets implementation to dispatch incoming user interface events to
the framework (and application).
"However, you might need to call it if implementing new functionality (such
as a new control) where you define new event types, as opposed to allowing
the user to override virtual functions."
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Saturday, January 12, 2008 5:26 PMRaffaello Barella wrote:
> Would please anybody pass me the full syntax to raise an event in
wxPython?self.GetEventHandler().ProcessEvent(theEvent)
Aaron Brady wrote:
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Saturday, January 12, 2008 5:26 PMRaffaello Barella wrote:
Would please anybody pass me the full syntax to raise an event in
wxPython?
self.GetEventHandler().ProcessEvent(theEvent)
This is from the wxWidgets docs,
http://www.wxwidgets.org/manuals/stable/wx_wxevthandler.html#wxevthandlerpro
cesseventbut does it apply?
More or less. All it's saying is that normally you don't need to send events, just receive them. But when you do need to send events then it's ok and this is the way you do it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!