Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.