Example #1
0
        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)
Example #2
0
        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)