示例#1
0
 def _say_choice(self):
     psounds.play_stereo(sounds.get_sound(SELECT_SOUND))
     choice = self.choices[self.choice_index]
     msg = list(choice[0])
     if len(choice) > 2:
         msg += mp.COMMA + choice[2]
     voice.item(msg)
示例#2
0
 def _confirm_choice(self):
     psounds.play_stereo(sounds.get_sound(6116))
     if self._choice_exists() and self.choices[self.choice_index]:
         voice.confirmation(
             self.choices[self.choice_index][0][:1]
         )  # repeat only the first part of the choice (not the help)
         self.choice_done = True
示例#3
0
 def _say_choice(self):
     psounds.play_stereo(sounds.get_sound(SELECT_SOUND))
     choice = self.choices[self.choice_index]
     msg = list(choice[0])
     if len(choice) > 2:
         msg +=  mp.COMMA + choice[2]
     voice.item(msg)
示例#4
0
 def _say_choice(self):
     psounds.play_stereo(sounds.get_sound(6115))
     voice.item(self.choices[self.choice_index][0])
示例#5
0
 def _confirm_choice(self):
     psounds.play_stereo(sounds.get_sound(CONFIRM_SOUND))
     if self._choice_exists() and self.choices[self.choice_index]:
         voice.confirmation(self.choices[self.choice_index][0])
         self.choice_done = True
示例#6
0
 def _say_choice(self):
     psounds.play_stereo(sounds.get_sound(6115))
     voice.item(self.choices[self.choice_index][0])
示例#7
0
 def _confirm_choice(self):
     psounds.play_stereo(sounds.get_sound(6116))
     if self._choice_exists() and self.choices[self.choice_index]:
         voice.confirmation(self.choices[self.choice_index][0][:1]) # repeat only the first part of the choice (not the help)
         self.choice_done = True
示例#8
0
 def _confirm_choice(self):
     psounds.play_stereo(sounds.get_sound(CONFIRM_SOUND))
     if self._choice_exists() and self.choices[self.choice_index]:
         voice.confirmation(self.choices[self.choice_index][0])
         self.choice_done = True