Hi! Can I know what kind of event I have in a function? Like this: I have a function that is activated with menu and button event, but I want to know what event that activate this function.
Diego
Hi! Can I know what kind of event I have in a function? Like this: I have a function that is activated with menu and button event, but I want to know what event that activate this function.
Diego
Diego Galho Prestes wrote:
Hi! Can I know what kind of event I have in a function? Like this: I have a function that is activated with menu and button event, but I want to know what event that activate this function.
I believe that wxEvent.GetEventObject() should give you the object (menu item or button) that triggered the event...
Jeff Shannon
Technician/Programmer
Credit International
Diego Galho Prestes wrote:
Hi! Can I know what kind of event I have in a function? Like this: I have a function that is activated with menu and button event, but I want to know what event that activate this function.
event.GetEventType()
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!