Wxpython Get Event Id
I have some code, which binds a menu item to a method: def getEventID(self, event): print id # how do I get id? EVT_MENU(self, 123, self.getEventID) So basicly, I want my ap
Solution 1:
You should just be able to use event.GetId()
I believe. You can also use event.GetEventObject()
to get the widget that fired the event.
Post a Comment for "Wxpython Get Event Id"