示例#1
0
 def deleteService(self):
     if self.AC3delay.isStreamService:
         current_service = self.AC3delay.iServiceReference
         if current_service:
             delay_service = self.listStreamService.get(
                 current_service.toCompareString(), None)
             if delay_service:
                 del self.listStreamService[
                     current_service.toCompareString()]
                 saveServiceDict(self.listStreamService)
                 self["key_yellow"].setText(" ")
示例#2
0
 def saveToConfigAnswer(self, answer):
     if answer:
         current_service = self.AC3delay.iServiceReference
         if current_service:
             CurDelay = self.currentValue[self.AC3delay.whichAudio]
             delay_service = self.listStreamService.get(
                 current_service.toCompareString(), None)
             if delay_service:
                 delay_value = int(delay_service[1])
                 if CurDelay <> delay_value:
                     del self.listStreamService[
                         current_service.toCompareString()]
                     self.listStreamService[current_service.toCompareString(
                     )] = (current_service.toCompareString(), str(CurDelay))
             else:
                 self.listStreamService[current_service.toCompareString(
                 )] = (current_service.toCompareString(), str(CurDelay))
             saveServiceDict(self.listStreamService)
     self.close()