Okay, so I've been googling for 4 hours and can't find any examples or help with this, but I really hope its possible. What I want is a common handler for all buttons in a frame.
self.Bind(wx.EVT_BUTTON, self.Handler)
def Handler(self, event):
#handles all button clicks
I've tried figuring out if event return ID or something off what caused the event, but I failed doing so. So basically I'm wondering if this is doable or if its a lost cause, if its doable, does the event object return ID or Name of the button that caused event?
I'm used to having one event handling procedure.
Also, while we're at it, is it possible to have that event handler in an other module?
All help appriciated! ~Sprut1