Example #1
0
 def onRemoteResponse(self, response, request_info): 
     print "inside onRemoteResponse"
     print response  
     self.srace = response  
     sampleBallot.sendRace(self.srace)
     #sampleBallot.instructions.clear()
     sampleBallot.title.add(HTML('Name: %s' % self.srace.name))
     sampleBallot.instructions.add(HTML('Instruction: %s' %  self.srace.instructions))
     sampleBallot.fsm.startVoting()
     sampleBallot.currObj = sampleBallot.race
     sampleBallot.playAudio(sampleBallot.race.audioPath)
     sampleBallot.setContest()
Example #2
0
 def onRemoteResponse(self, response, request_info):     
     print "inside onRemoteResponse"
     print response  
     self.srace = response  
     sampleBallot.sendRace(self.srace)
     #sampleBallot.instructions.clear()
     #sampleBallot.title.add(HTML('Name: %s' % self.srace.name))
     #sampleBallot.instructions.add(HTML('Instruction: %s' %  self.srace.instructions))
     #inst = sampleBallot.getInstruction()
     #self.mainPanel.add(HTML()
     sampleBallot.fsm.startVoting()
     sampleBallot.currObj = sampleBallot.race.selectionList[0]
     #sampleBallot.playAudio()
     sampleBallot.setContest()