How can i get a value from button click from my frame?
btnYes = wx.Button(panel, -1, "OK")
self.Bind(wx.EVT_BUTTON, self.clickYes, btnYes)
def clickYes(self, evt):
print "clicked Yes"
self.Close()
whenever a user click yes , i want to get a value to check in other module. Something like confirmation flag. When user is confirmed one item then carrying on doing other items. The confirmation flag i will be using is here below :
matchList = []
for x, y in product(d1rows, d2rows):
if somethingTrue():
if userConfirmedFromWxPythonClickYesButton():
matchList.append(abc)
return matchList