def handleWrong(self): if freakingmath.check_answer(self.num1, self.num2, self.sign, self.answer, False): self.increaseScore() self.correctSound.play() else: self.resetScore() self.incorrectSound.play() self.getRandomMathProblem() self.repaint()
def handleCorrect(self): if freakingmath.check_answer(self.tr, True): self.increaseScore() self.correctSound.play() else: self.resetScore() self.incorrectSound.play() self.getRandomMathProblem() self.repaint()