I have the wxPyhon following code
self.button1 = wx.Button(self, id=-1, label='Button1',pos=(8, 8), size=(175, 28))
self.button2 = wx.Button(self, id=-1, label='Button2',pos=(16, 8), size=(175, 28))
self.button1.Bind(wx.EVT_BUTTON, self.onButton)
self.button1.Bind(wx.EVT_BUTTON, self.onButton)
and I need to process the buttons on the below function according to the luanched event could someone provide an idea i.e
def button1Click(self,event):
if(event of button1 ) :
proccess code
if(event of button2 ):
proccess code
how can i know which button luanch the event