def camstart(reason, **kwargs): global timerInstance if not config.plugins.extraspanel_frozencheck.list.getValue() == '0': CamCheck() try: f = open('/proc/stb/video/alpha', 'w') f.write(str(config.osd.alpha.getValue())) f.close() except: print '[Extras-Panel] failed to write /proc/stb/video/alpha' try: if config.softcam.camstartMode.getValue() == '0': if timerInstance is None: timerInstance = CamStart(None) timerInstance.startTimer() except: print '[Extras-Panel] failed to run CamStart' return
def doClose(self): if not config.plugins.extraspanel_frozencheck.list.getValue() == '0': CamCheck() self.close()