def setChallenge(self, challengeId): if challengeId == 0: self.completeChallenge() return challengeInfo = ExperimentChallenges.getChallengeInfo(challengeId) self.challengeGui = ExperimentChallengeGUI(*challengeInfo) self.challengeGui.setPos(0.92, 0, 0.17) self.showChallengeGui()
def setChallenge(self, challengeId): self.currentChallenge = None if challengeId: self.currentObjective = ExperimentChallenges.makeChallenge( challengeId, self) self.sendUpdate('setChallenge', [challengeId])
def setChallenge(self, challengeId): self.currentChallenge = None if challengeId: self.currentObjective = ExperimentChallenges.makeChallenge(challengeId, self) self.sendUpdate('setChallenge', [challengeId])