コード例 #1
0
 def onSettingsChanged(self):
     try:
         self.tts._update()
     except TTSClosedException:
         return
     self.checkBackend()
     self.reloadSettings()
     self.updateInterval()
     #Deprecated for the addon starting with Gotham - now using NotifyAll (Still used for SHUTDOWN until I figure out the issue when using NotifyAll with that)
     command = util.getCommand()
     if not command: return
     self.processCommand(command)
コード例 #2
0
 def onSettingsChanged(self):
     try:
         self.tts._update()
     except TTSClosedException:
         return
     self.checkBackend()
     self.reloadSettings()
     self.updateInterval()
     #Deprecated for the addon starting with Gotham - now using NotifyAll (Still used for SHUTDOWN until I figure out the issue when using NotifyAll with that)
     command = util.getCommand()
     if not command: return
     self.processCommand(command)
コード例 #3
0
ファイル: service.py プロジェクト: pvagner/service.xbmc.tts
 def onSettingsChanged(self):
     command = util.getCommand()
     if not command:
         return
     util.LOG(command)
     if command == "REPEAT":
         self.repeatText()
     elif command == "EXTRA":
         self.sayExtra()
     elif command == "ITEM_EXTRA":
         self.sayItemExtra()
     elif command == "STOP":
         self.stopSpeech()