1 from Source import Source
2 from enigma import eDVBResourceManager
4 class TunerInfo(Source):
9 self.tuner_use_mask = 0
10 res_mgr = eDVBResourceManager.getInstance()
12 res_mgr.frontendUseMaskChanged.get().append(self.tunerUseMaskChanged)
16 def tunerUseMaskChanged(self, mask):
17 self.tuner_use_mask = mask
18 self.changed((self.CHANGED_SPECIFIC, self.FE_USE_MASK))
20 def getTunerUseMask(self):
21 return self.tuner_use_mask
24 res_mgr = eDVBResourceManager.getInstance()
26 res_mgr.frontendUseMaskChanged.get().remove(self.tunerUseMaskChanged)