예제 #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