def __init__(self, session, nimlist): print "[AutoCableScan] start" Screen.__init__(self, session) self.skinName = "Standby" self["actions"] = ActionMap(["StandbyActions"], { "power": self.Power, "discrete_on": self.Power }, -1) self.onClose.append(self.__onClose) self.nimlist = nimlist self.scan = eCableScan( config.plugins.CableScan.networkid.value, config.plugins.CableScan.frequency.floatint, config.plugins.CableScan.symbolrate.value * 1000, int(config.plugins.CableScan.modulation.value), config.plugins.CableScan.keepnumbering.value, config.plugins.CableScan.hdlist.value) self.scan.scanCompleted.get().append(self.scanCompleted) if self.getFreeTuner(): self.scan.start(self.freeTuner) else: self.close(False)
def execBegin(self): self.text.setText(_('Scanning...')) self.progressbar.setValue(0) self.scan = eCableScan(self.scanNetwork, self.scanFrequency, self.scanSymbolRate, self.scanModulation, self.keepNumbers, self.hdList) self.scan.scanCompleted.get().append(self.scanCompleted) self.scan.scanProgress.get().append(self.scanProgress) self.scan.start(self.scanTuner)
def __init__(self, session, nimlist): print "[AutoCableScan] start" Screen.__init__(self, session) self.skinName="Standby" self["actions"] = ActionMap( [ "StandbyActions" ], { "power": self.Power, "discrete_on": self.Power }, -1) self.onClose.append(self.__onClose) self.scan = eCableScan(config.plugins.CableScan.networkid.value, config.plugins.CableScan.frequency.floatint, config.plugins.CableScan.symbolrate.value * 1000, int(config.plugins.CableScan.modulation.value), config.plugins.CableScan.keepnumbering.value, config.plugins.CableScan.hdlist.value) self.scan.scanCompleted.get().append(self.scanCompleted) self.scan.start(int(nimlist[0]))