def checkAnswer(): if optionsGroup.value == 1: dlg = gui.Dialog(gui.Label("Your answer was..."),gui.Label("Correct. Well Done")) else: dlg = gui.Dialog(gui.Label("Your answer was..."),gui.Label("Wrong. Try Again")) self.app.open(dlg)
def checkAnswer(): if gAns.value == str(exp.SHC): dlg = gui.Dialog(gui.Label("Your answer was..."), gui.Label("Correct. Well Done")) else: dlg = gui.Dialog(gui.Label("Your answer was..."), gui.Label("Wrong. Try Again")) self.app.open(dlg)