def onQuestion(self, msg): """ Gets called when a new question is received. The received question is then displayed in the GUI. """ self._answerLocked = False self.activeQuestion = Question.fromMsg(msg) self.ui.updateQuestion(self.activeQuestion)