def __init__(self, session): Screen.__init__(self, session) self.setTitle(_("NFR-SoftCam manager")) self.Console = Console() self["key_red"] = Label(_("Stop")) self["key_green"] = Label(_("Start")) self["key_yellow"] = Label(_("Restart")) self["key_blue"] = Label(_("Setup")) self["actions"] = ActionMap( ["OkCancelActions", "ColorActions"], { "cancel": self.cancel, "ok": self.ok, "green": self.start, "red": self.stop, "yellow": self.restart, "blue": self.setup }, -1) self["status"] = ScrollLabel() self["list"] = List([]) Softcam.checkconfigdir() self.actcam = config.NFRSoftcam.actcam.value self.camstartcmd = "" self.createinfo() self.Timer = eTimer() self.Timer.callback.append(self.listecminfo) self.Timer.start(1000 * 4, False)
def __init__(self, session): Screen.__init__(self, session) self.setTitle(_("NFR-SoftCam manager")) self.Console = Console() self["key_red"] = Label(_("Stop")) self["key_green"] = Label(_("Start")) self["key_yellow"] = Label(_("Restart")) self["key_blue"] = Label(_("Setup")) self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], { "cancel": self.cancel, "ok": self.ok, "green": self.start, "red": self.stop, "yellow": self.restart, "blue": self.setup }, -1) self["status"] = ScrollLabel() self["list"] = List([]) Softcam.checkconfigdir() self.actcam = config.NFRSoftcam.actcam.value self.camstartcmd = "" self.createinfo() self.Timer = eTimer() self.Timer.callback.append(self.listecminfo) self.Timer.start(1000*4, False)
def __init__(self, session): Screen.__init__(self, session) self.setTitle(_("SoftCam manager")) self.Console = Console() self["key_red"] = Label(_("Stop")) self["key_green"] = Label(_("Start")) self["key_yellow"] = Label(_("Restart")) self["key_blue"] = Label(_("Setup")) self["actions"] = ActionMap( ["OkCancelActions", "ColorActions"], { "cancel": self.cancel, "ok": self.ok, "green": self.start, "red": self.stop, "yellow": self.restart, "blue": self.setup }, -1) self["status"] = ScrollLabel() self["list"] = List([]) Softcam.checkconfigdir() self.actcam = config.plugins.AltSoftcam.actcam.value self.softcamlist = [] self.finish = True self.camstartcmd = "" self.actcampng = LoadPixmap(path=resolveFilename( SCOPE_PLUGINS, "Extensions/AlternativeSoftCamManager/images/actcam.png")) self.defcampng = LoadPixmap(path=resolveFilename( SCOPE_PLUGINS, "Extensions/AlternativeSoftCamManager/images/defcam.png")) self.stoppingTimer = eTimer() self.stoppingTimer.timeout.get().append(self.stopping) self.closestopTimer = eTimer() self.closestopTimer.timeout.get().append(self.closestop) self.startcreateinfo() self.Timer = eTimer() self.Timer.callback.append(self.listecminfo) self.Timer.start(1000 * 4, False)
def __init__(self, session): Screen.__init__(self, session) self.setTitle(_("SoftCam manager")) self.Console = Console() self["key_red"] = Label(_("Stop")) self["key_green"] = Label(_("Start")) self["key_yellow"] = Label(_("Restart")) self["key_blue"] = Label(_("Setup")) self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], { "cancel": self.cancel, "ok": self.ok, "green": self.start, "red": self.stop, "yellow": self.restart, "blue": self.setup }, -1) self["status"] = ScrollLabel() self["list"] = List([]) Softcam.checkconfigdir() self.actcam = config.plugins.AltSoftcam.actcam.value self.softcamlist = [] self.finish = True self.camstartcmd = "" self.actcampng = LoadPixmap(path=resolveFilename(SCOPE_PLUGINS, "Extensions/AlternativeSoftCamManager/images/actcam.png")) self.defcampng = LoadPixmap(path=resolveFilename(SCOPE_PLUGINS, "Extensions/AlternativeSoftCamManager/images/defcam.png")) self.stoppingTimer = eTimer() self.stoppingTimer.timeout.get().append(self.stopping) self.closestopTimer = eTimer() self.closestopTimer.timeout.get().append(self.closestop) self.startcreateinfo() self.Timer = eTimer() self.Timer.callback.append(self.listecminfo) self.Timer.start(1000*4, False)
from Components.config import config, ConfigSubsection, ConfigText from Components.Console import Console from Plugins.Plugin import PluginDescriptor from os import mkdir, path, remove from time import sleep config.plugins.AltSoftcam = ConfigSubsection() config.plugins.AltSoftcam.actcam = ConfigText(default="none") config.plugins.AltSoftcam.camconfig = ConfigText(default="/var/keys", visible_width=100, fixed_size=False) config.plugins.AltSoftcam.camdir = ConfigText(default="/var/emu", visible_width=100, fixed_size=False) Softcam.checkconfigdir() def main(session, **kwargs): import Manager session.open(Manager.AltCamManager) EnigmaStart = False def startcam(reason, **kwargs): if config.plugins.AltSoftcam.actcam.value != "none": global EnigmaStart if reason == 0 and EnigmaStart == False: # Enigma start and not use reloadPlugins EnigmaStart = True sleep(2) try: cmd = Softcam.getcamcmd(config.plugins.AltSoftcam.actcam.value)
from Components.Console import Console from Plugins.Plugin import PluginDescriptor from os import mkdir, path, remove from time import sleep config.plugins.AltSoftcam = ConfigSubsection() config.plugins.AltSoftcam.actcam = ConfigText(default="none") config.plugins.AltSoftcam.camconfig = ConfigText(default="/var/keys", visible_width=100, fixed_size=False) config.plugins.AltSoftcam.camdir = ConfigText(default="/var/emu", visible_width=100, fixed_size=False) Softcam.checkconfigdir() def main(session, **kwargs): import Manager session.open(Manager.AltCamManager) EnigmaStart = False def startcam(reason, **kwargs): if config.plugins.AltSoftcam.actcam.value != "none": global EnigmaStart if reason == 0 and EnigmaStart == False: # Enigma start and not use reloadPlugins EnigmaStart = True