def __init__(self, session, args=0): print >> log, "[UpdateProviders][__init__] Starting..." print "[UpdateProviders][__init__] args", args self.session = session Screen.__init__(self, session) Screen.setTitle(self, _("UpdateProviders")) self["background"] = Pixmap() self["action"] = Label(_("Finding configured providers...")) self["status"] = Label("") self["progress"] = ProgressBar() self["actions"] = ActionMap(["SetupActions"], { "cancel": self.keyCancel, }, -2) self.timerlength = 100 socket_timeout = 10 socket.setdefaulttimeout(socket_timeout) self.index = 0 self.messages = [] self.version_checked = False self.pluginGit = "https://github.com/oe-alliance/AutoBouquetsMaker" self.gitProvidersFolder = "/raw/master/AutoBouquetsMaker/providers" self.remoteVersion = "/raw/master/AutoBouquetsMaker/src/version.py" self.providersFolder = "%s/providers/" % os.path.dirname( sys.modules[__name__].__file__) self.providers = Manager().getProviders() # dependent providers self.dependents = {} for provider_key in self.providers: if len(self.providers[provider_key] ["dependent"]) > 0 and self.providers[provider_key][ "dependent"] in self.providers: if self.providers[provider_key][ "dependent"] not in self.dependents: self.dependents[self.providers[provider_key] ["dependent"]] = [] self.dependents[self.providers[provider_key] ["dependent"]].append(provider_key) # get ABM config string including dependents self.abm_settings_str = self.getABMsettings() self.onFirstExecBegin.append(self.firstExec)
def __init__(self, session, eventName, args = None): self.skin = OFDB.skin Screen.__init__(self, session) self.eventName = eventName self.dictionary_init() self["poster"] = Pixmap() self.picload = ePicLoad() self.picload.PictureData.get().append(self.paintPosterPixmapCB) self["stars"] = ProgressBar() self["starsbg"] = Pixmap() self["stars"].hide() self["starsbg"].hide() self.ratingstars = -1 self["titellabel"] = Label(_("The Online-Filmdatenbank")) self["detailslabel"] = ScrollLabel("") self["castlabel"] = ScrollLabel("") self["extralabel"] = ScrollLabel("") self["statusbar"] = Label("") self["ratinglabel"] = Label("") self.resultlist = [] self["menu"] = MenuList(self.resultlist) self["menu"].hide() self["key_red"] = Button(_("Exit")) self["key_green"] = Button("") self["key_yellow"] = Button("") self["key_blue"] = Button("") # 0 = multiple query selection menu page # 1 = movie info page # 2 = extra infos page self.Page = 0 self["actions"] = ActionMap(["OkCancelActions", "ColorActions", "MovieSelectionActions", "DirectionActions"], { "ok": self.showDetails, "cancel": self.close, "down": self.pageDown, "up": self.pageUp, "red": self.close, "green": self.showMenu, "yellow": self.showDetails, "blue": self.showExtras, "contextMenu": self.openChannelSelection, "showEventInfo": self.showDetails }, -1) self.getOFDB()
def __init__(self, session, type = 0, needupdate = True): Screen.__init__(self, session) global pluginfiles self.type = type self.needupdate = needupdate self.container = eConsoleAppContainer() self.container.appClosed.append(self.runFinished) self.container.dataAvail.append(self.dataAvail) self.onLayoutFinish.append(self.startRun) self.onShown.append(self.setWindowTitle) self.setuplist = [] self.list = [] self["list"] = PluginList(self.list) self.pluginlist = [] self.expanded = [] self.installedplugins = [] self.plugins_changed = False self.reload_settings = False self.check_settings = False self.check_bootlogo = False self.install_settings_name = '' self.remove_settings_name = '' self['spaceused'] = ProgressBar() self["status"] = ScrollLabel() self['key_green'] = Label(_('Install')) self['key_blue'] = Label(_('Exit')) if self.type == self.DOWNLOAD: self["text"] = Label(_("Downloading plugin information. Please wait...")) self.run = 0 self.remainingdata = "" self["actions"] = ActionMap(["WizardActions", "ColorActions"], { "ok": self.go, "back": self.requestClose, "green": self.install, "blue": self.close, }) if os.path.isfile('/usr/bin/opkg'): self.ipkg = '/usr/bin/opkg' self.ipkg_install = self.ipkg + ' install --force-overwrite' self.ipkg_install1 = self.ipkg_install + ' --force-depends' else: self.ipkg = 'ipkg' self.ipkg_install = 'ipkg install --force-overwrite -force-defaults' self.ipkg_install1 = self.ipkg_install + ' --force-depends'
def __init__(self, session, scanList): Screen.__init__(self, session) self.scanList = scanList if hasattr(session, 'infobar'): self.currentInfobar = Screens.InfoBar.InfoBar.instance if self.currentInfobar: self.currentServiceList = self.currentInfobar.servicelist if self.session.pipshown and self.currentServiceList: if self.currentServiceList.dopipzap: self.currentServiceList.togglePipzap() if hasattr(self.session, 'pip'): del self.session.pip self.session.pipshown = False else: self.currentInfobar = None self.session.postScanService = session.nav.getCurrentlyPlayingServiceOrGroup( ) self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) self["network"] = Label() self["transponder"] = Label() self["pass"] = Label("") self["servicelist"] = FIFOList() self["FrontendInfo"] = FrontendInfo() self["key_red"] = Label(_("Cancel")) self["key_green"] = Label(_("OK")) self["done_text"] = Label() self["actions"] = ActionMap( ["SetupActions", "MenuActions"], { "ok": self.ok, "save": self.ok, "cancel": self.cancel, "menu": self.doCloseRecursive }, -2) self.title = _("Service scan") if self.layoutFinished not in self.onLayoutFinish: self.onLayoutFinish.append(self.layoutFinished) self.onFirstExecBegin.append(self.doServiceScan) self.onClose.append(self.doPluginCB)
def __init__(self): self["buffer_slider"] = ProgressBar() self["buffer_size_label"] = Label(_("Buffer size")) self["buffer_size"] = Label(_("0")) self["buffer_label"] = Label("Buffer") self["buffer_state"] = Label(_("N/A")) self["download_label"] = Label(_("Speed")) self["download_speed"] = Label(_("N/A")) self["bitrate_label"] = Label(_("Bitrate")) self["bitrate"] = Label("") self.onFirstExecBegin.append(self.__resetBufferSlider) self.__event_tracker = ServiceEventTracker( screen=self, eventmap={ iPlayableService.evStart: self.__serviceStarted, })
def __init__(self, session, args=0): self.session = session Screen.__init__(self, session) Screen.setTitle(self, _("AutoBouquetsMaker")) self["background"] = Pixmap() self["action"] = Label(_("Starting scanner")) self["status"] = Label("") self["progress"] = ProgressBar() self.frontend = None self.rawchannel = None self.postScanService = None self.providers = Manager().getProviders() self.actionsList = [] self.onFirstExecBegin.append(self.firstExec)
def __init__(self, session, args = 0): Screen.__init__(self, session) self.skinName = ["Setup"] self['spaceused'] = ProgressBar() self["status"] = ScrollLabel() self.onShown.append(self.setWindowTitle) list = [] list.append(getConfigListEntry(_('Enable OpenNfr Image-Update-Check?'), config.opennfrupdate.enablecheckupdate)) self["key_red"] = Label(_("Exit")) self["key_green"] = Label(_("Save")) ConfigListScreen.__init__(self, list) self['actions'] = ActionMap(['OkCancelActions', 'ColorActions'], {'red': self.dontSaveAndExit, 'green' : self.run, 'cancel': self.dontSaveAndExit}, -1)
def __init__(self, session, scanList): Screen.__init__(self, session) self["Title"] = Label(_("Scanning...")) self.scanList = scanList if hasattr(session, 'infobar'): self.currentInfobar = Screens.InfoBar.InfoBar.instance if self.currentInfobar: self.currentServiceList = self.currentInfobar.servicelist if self.session.pipshown and self.currentServiceList: if self.currentServiceList.dopipzap: self.currentServiceList.togglePipzap() if hasattr(self.session, 'pip'): del self.session.pip self.session.pipshown = False else: self.currentInfobar = None self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) self["network"] = Label() self["transponder"] = Label() self["pass"] = Label("") self["servicelist"] = FIFOList() self["FrontendInfo"] = FrontendInfo() self["key_red"] = Label(_("Cancel")) self["key_green"] = Label(_("OK")) self["actions"] = ActionMap( ["SetupActions", "MenuActions"], { "up": self.up, "down": self.down, "ok": self.ok, "save": self.ok, "cancel": self.cancel, "menu": self.doCloseRecursive }, -2) self.setTitle(_("Service scan")) self.onFirstExecBegin.append(self.doServiceScan) self.scanTimer = eTimer() self.scanTimer.callback.append(self.scanPoll)
def __init__(self, list, session=None, on_change=None): self['spaceused'] = ProgressBar() self.onShown.append(self.setWindowTitle) self["config_actions"] = NumberActionMap( ["SetupActions", "InputAsciiActions", "KeyboardInputActions"], { "gotAsciiCode": self.keyGotAscii, "ok": self.keyOK, "left": self.keyLeft, "right": self.keyRight, "home": self.keyHome, "end": self.keyEnd, "deleteForward": self.keyDelete, "deleteBackward": self.keyBackspace, "toggleOverwrite": self.keyToggleOW, "pageUp": self.keyPageUp, "pageDown": self.keyPageDown, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, "4": self.keyNumberGlobal, "5": self.keyNumberGlobal, "6": self.keyNumberGlobal, "7": self.keyNumberGlobal, "8": self.keyNumberGlobal, "9": self.keyNumberGlobal, "0": self.keyNumberGlobal, "file": self.keyFile }, -1) # to prevent left/right overriding the listbox self.onChangedEntry = [] self["VirtualKB"] = ActionMap(["VirtualKeyboardActions"], { "showVirtualKeyboard": self.KeyText, }, -2) self["VirtualKB"].setEnabled(False) self["config"] = ConfigList(list, session=session) if on_change is not None: self.__changed = on_change else: self.__changed = lambda: None if not self.handleInputHelpers in self["config"].onSelectionChanged: self["config"].onSelectionChanged.append(self.handleInputHelpers)
def __init__(self, session, args=None): self.session = session self.time = time Screen.__init__(self, session) self["myLabel"] = Label( ("Pressione OK para iniciar o download ou EXIT para sair.")) self["myActionMap"] = ActionMap(["SetupActions"], { "ok": self.myMsg, "cancel": self.cancel }, -1) self["progress"] = ProgressBar() self["progress"].setValue(0) self.infoTimer = eTimer() self.infoTimer.timeout.get().append(self.updateInfo) self.downloading = False self.dlFinished = False
def __init__(self, session, name, node): self.skin = File.skin PPanelEntry.__init__(self, session, name, node) self["progress"] = ProgressBar() self["progress"].setRange((0, 100)) self["progress"].setValue(0) self.onLayoutFinish.append(self.startDownload) self["actions"] = ActionMap(["OkCancelActions"], { "cancel": self.abort, }, -1) self.url = str(self.node.getAttribute("url")) self.target = self.node.getAttribute("target") self.connection = None
def __init__(self, session, scanTuner=0, transponderParameters=None, scanPid=900, keepNumbers=False, keepSettings=False, providerName='Favorites'): Screen.__init__(self, session) self.setTitle(_("Fast Scan")) self.scanPid = scanPid self.scanTuner = scanTuner self.transponderParameters = transponderParameters self.keepNumbers = keepNumbers self.keepSettings = keepSettings self.providerName = providerName self.isDone = False self.onClose.append(self.__onClose) self["frontend"] = Pixmap() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) if hasattr(session, 'infobar'): currentInfobar = session.infobar currentServiceList = currentInfobar.servicelist if self.session.pipshown and currentServiceList: if currentServiceList.dopipzap: currentServiceList.togglePipzap() if hasattr(self.session, 'pip'): del self.session.pip self.session.pipshown = False self.prevservice = self.session.nav.getCurrentlyPlayingServiceReference( ) self.session.nav.stopService() self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.ok, "cancel": self.cancel }) self.onFirstExecBegin.append(self.doServiceScan)
def __init__(self, session): Screen.__init__(self, session) self["progress"] = ProgressBar() self["progress"].setRange((0, 100)) self["progress"].setValue(0) self["AboutScrollLabel"] = ScrollLabel("", showscrollbar=False) self["header"] = Label( _("Autoinstalling please wait for packages being updated")) self.logfile = open('/home/root/autoinstall.log', 'w') self.container = eConsoleAppContainer() self.container.appClosed.append(self.appClosed) self.container.dataAvail.append(self.dataAvail) self.package = None import glob print("[StartWizard] Read /sys/class/net/eth0/address") mac_address = open('/sys/class/net/eth0/address', 'r').readline().strip().replace(":", "") autoinstallfiles = glob.glob( '/media/*/backup/autoinstall%s' % mac_address) + glob.glob( '/media/net/*/backup/autoinstall%s' % mac_address) if not autoinstallfiles: autoinstallfiles = glob.glob( '/media/*/backup/autoinstall') + glob.glob( '/media/net/*/backup/autoinstall') autoinstallfiles.sort(key=os.path.getmtime, reverse=True) for autoinstallfile in autoinstallfiles: if os.path.isfile(autoinstallfile): autoinstalldir = os.path.dirname(autoinstallfile) self.packages = [ package.strip() for package in open(autoinstallfile).readlines() ] + [ os.path.join(autoinstalldir, file) for file in os.listdir(autoinstalldir) if file.endswith(".ipk") ] if self.packages: self.number_of_packages = len(self.packages) # make sure we have a valid package list before attempting to restore packages self.container.execute("opkg update") return self.abort()
def __init__(self, session, args=0): self.printconfig() self.session = session Screen.__init__(self, session) Screen.setTitle(self, _("AutoBouquetsMaker")) self.frontend = None self.rawchannel = None self.postScanService = None self.providers = Manager().getProviders() self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], { "cancel": self.keyCancel, "red": self.keyCancel, }, -2) # self["background"] = Pixmap() self["action"] = Label(_("Starting scanner")) self["status"] = Label("") self["progress"] = ProgressBar() self["progress_text"] = Progress() self["tuner_text"] = Label("") self["Frontend"] = FrontendStatus( frontend_source=lambda: self.frontend, update_interval=100) # dependent providers self.dependents = {} for provider_key in self.providers: if len(self.providers[provider_key] ["dependent"]) > 0 and self.providers[provider_key][ "dependent"] in self.providers: if self.providers[provider_key][ "dependent"] not in self.dependents: self.dependents[self.providers[provider_key] ["dependent"]] = [] self.dependents[self.providers[provider_key] ["dependent"]].append(provider_key) # get ABM config string including dependents self.abm_settings_str = self.getABMsettings() self.actionsList = [] self.onFirstExecBegin.append(self.firstExec)
def __init__(self, session): Screen.__init__(self, session) self.skin = KTglob.SKIN self.skin_path = KTglob.plugin_path self["TimerGraph"] = KTmultiPixmap() self["TimerText"] = Label(_("01:00")) self["TimerSlider"] = ProgressBar() self["TimerSliderText"] = Label(_("01:00")) self["TimerTransparent"] = Pixmap() self["TimerTransparentText"] = Label(_("01:00")) if config.plugins.KiddyTimer.timerStyle.value == "clock": self["TimerGraph"].show() self["TimerText"].show() self["TimerSlider"].hide() self["TimerSliderText"].hide() self["TimerTransparent"].hide() self["TimerTransparentText"].hide() elif config.plugins.KiddyTimer.timerStyle.value == "smiley": self["TimerGraph"].hide() self["TimerText"].hide() self["TimerSlider"].show() self["TimerSliderText"].show() self["TimerTransparent"].hide() self["TimerTransparentText"].hide() else: self["TimerGraph"].hide() self["TimerText"].hide() self["TimerSlider"].hide() self["TimerSliderText"].hide() self["TimerTransparent"].show() self["TimerTransparentText"].show() self["actions"] = ActionMap(["OkCancelActions"] , { "ok": self.keyOK, "cancel": self.keyCancel }, -1) MovableScreen.__init__(self, config.plugins.KiddyTimer, [], 82 , 82) self.startMoving()
def __init__(self, session): from Components.Sources.StaticText import StaticText self.skin = MovePlugins_int.skin Screen.__init__(self, session) self["config"] = Label(_("Move Plugins back to flash?")) self["introduction"] = Label(_("Do you really want move Plugins back to flash?")) self.onShown.append(self.setWindowTitle) self['spaceused'] = ProgressBar() self["key_red"] = StaticText(_("Cancel")) self["key_green"] = StaticText(_("Ok")) self["actions"] = ActionMap(["WizardActions", "ColorActions", "EPGSelectActions"], { "ok": self.doIt, "back": self.close, "green": self.doIt, "red": self.close, }, -1)
def __init__(self, session, url, file): self.session = session Screen.__init__(self, session) self.url = url self.file = file self.infoTimer = eTimer() self.infoTimer.timeout.get().append(self.updateInfo) self["info"] = Label(_("Downloading movie: %s") % self.file) self["progress"] = ProgressBar() self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.okClicked, "cancel": self.exit }, -1) self.onLayoutFinish.append(self.downloadMovie)
def __init__(self, session): Screen.__init__(self, session) labelList = [('flash1', ''), ('flash2', ''), ('cf1', _('Compact Flash:')), ('cf2', ''), ('usb1', _('Usb:')), ('usb2', ''), ('hdd1', _('Hard Disk:')), ('hdd2', ''), ('tot1', 'Not Found'), ('tot2', ''), ('ram1', 'Ram: '), ('ram2', ''), ('swap1', 'Swap: '), ('swap2', ''), ('total1', 'Total Memory: '), ('total2', '')] progrList = [ 'rambar', 'swapbar', 'totbar', 'flashbar', 'cfbar', 'usbbar', 'hddbar', 'totalbar' ] self['bot1'] = Pixmap() self['bot2'] = Pixmap() self['bot3'] = Pixmap() self['bot4'] = Pixmap() self['bot5'] = Pixmap() self['bot6'] = Pixmap() self['bot7'] = Pixmap() self['bot8'] = Pixmap() self['bot9'] = Pixmap() self['bot10'] = Pixmap() self['bot11'] = Pixmap() for x in labelList: self[x[0]] = Label(x[1]) for x in progrList: self[x] = ProgressBar() c = eConsoleAppContainer() c.execute('df > /tmp/.df.tmp && free > /tmp/.mem.tmp') del c self['actions'] = ActionMap(['WizardActions'], { 'ok': self.close, 'back': self.close }) self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.updateList) self.activityTimer.start(10) self.onShown.append(self.setWindowTitle)
def __init__(self, session, scanList): self.skin = SimpleServiceScan.skin Screen.__init__(self, session) self.scanList = scanList if hasattr(session, 'infobar'): self.currentInfobar = session.infobar self.currentServiceList = self.currentInfobar.servicelist if self.session.pipshown and self.currentServiceList: if self.currentServiceList.dopipzap: self.currentServiceList.togglePipzap() del self.session.pip self.session.pipshown = False else: self.currentInfobar = None self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("Scan state")) self["network"] = Label() self["transponder"] = Label() self["pass"] = Label("") self["servicelist"] = FIFOList(len=15000) self["FrontendInfo"] = FrontendInfo() self["actions"] = ActionMap(["DirectionActions", "OkCancelActions"], { "cancel": self.cancel, "ok": self.ok, "left": self["servicelist"].pageUp, "right": self["servicelist"].pageDown, "up": self["servicelist"].pageUp, "down": self["servicelist"].pageDown, "pageUp": self["servicelist"].pageUp, "pageDown": self["servicelist"].pageDown }, -2) self.onFirstExecBegin.append(self.doServiceScan)
def __init__(self, session): Screen.__init__(self, session) self['actions'] = ActionMap(['SetupActions', 'ColorActions'], {'cancel': self.close, 'ok': self.getMemoryInfo, 'green': self.getMemoryInfo, 'blue': self.clearMemory}) self['key_red'] = Label(_('Cancel')) self['key_green'] = Label(_('Refresh')) self['key_blue'] = Label(_('Clear')) self['lmemtext'] = Label() self['lmemvalue'] = Label() self['rmemtext'] = Label() self['rmemvalue'] = Label() self['pfree'] = Label() self['pused'] = Label() self['slide'] = ProgressBar() self['slide'].setValue(100) self['params'] = MemoryInfoSkinParams() self['info'] = Label(_("This info is for developers only.\nFor a normal users it is not relevant.\nDon't panic please when you see values being displayed that you think look suspicious!")) self.setTitle(_('Memory Info')) self.onLayoutFinish.append(self.getMemoryInfo)
def __init__(self, session, scanTuner, scanNetwork, scanFrequency, scanSymbolRate, scanModulation, keepNumbers, hdList): Screen.__init__(self, session) self.scanTuner = scanTuner self.scanNetwork = scanNetwork self.scanFrequency = scanFrequency self.scanSymbolRate = scanSymbolRate self.scanModulation = scanModulation self.keepNumbers = keepNumbers self.hdList = hdList self["frontend"] = Pixmap() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.ok, "cancel": self.cancel }) self.onFirstExecBegin.append(self.doServiceScan)
def __init__(self, session, scanList): Screen.__init__(self, session) self['Title'] = Label(_('Scanning...')) self.scanList = scanList if hasattr(session, 'infobar'): self.currentInfobar = Screens.InfoBar.InfoBar.instance if self.currentInfobar: self.currentServiceList = self.currentInfobar.servicelist if self.session.pipshown and self.currentServiceList: if self.currentServiceList.dopipzap: self.currentServiceList.togglePipzap() if hasattr(self.session, 'pip'): del self.session.pip self.session.pipshown = False else: self.currentInfobar = None self.session.nav.stopService() self['scan_progress'] = ProgressBar() self['scan_state'] = Label(_('scan state')) self['network'] = Label() self['transponder'] = Label() self['pass'] = Label('') self['servicelist'] = FIFOList() self['FrontendInfo'] = FrontendInfo() self['key_red'] = Label(_('Cancel')) self['key_green'] = Label(_('OK')) self['actions'] = ActionMap( ['SetupActions', 'MenuActions'], { 'up': self.up, 'down': self.down, 'ok': self.ok, 'save': self.ok, 'cancel': self.cancel, 'menu': self.doCloseRecursive }, -2) self.setTitle(_('Service scan')) self.onFirstExecBegin.append(self.doServiceScan) self.scanTimer = eTimer() self.scanTimer.callback.append(self.scanPoll) return
def __init__(self, session, updateName, updateInfo, downloadURL, downloadFileSize): self.session = session self.updateAvailable = False self.updateInfo = updateInfo self.updateName = updateName self.progress = 0 self.inProgres = False self.downloadDone = False self.downloadURL = downloadURL self.downloadFileSize = downloadFileSize self.filePath = None self.console = eConsoleAppContainer() self.progressTimer = eTimer() if isDreamboxOS: self.progressTimerConnection = self.progressTimer.timeout.connect(self.updateProgressBar) else: self.progressTimer.callback.append(self.updateProgressBar) Screen.__init__(self, session) self["actions"] = ActionMap(["SerienRecorderActions",], { "ok" : self.keyOK, "cancel": self.keyCancel, "left" : self.keyLeft, "right" : self.keyRight, "up" : self.keyUp, "down" : self.keyDown, }, -1) self['headline'] = Label("") self['srlog'] = ScrollLabel("") self['status'] = Label("") self['progressslider'] = ProgressBar() self['separator'] = Label("") self['text_ok'] = Label("Jetzt herunterladen und installieren") self['text_exit'] = Label("Später aktualisieren") self.onLayoutFinish.append(self.__onLayoutFinished)
def __init__(self, session, scanTuner=0, transponderParameters=None, scanPid=900, keepNumbers=False, keepSettings=False, providerName='Favorites', createRadioBouquet=False): Screen.__init__(self, session) self.setTitle(_("Fast Scan")) self.scanPid = scanPid self.scanTuner = scanTuner self.transponderParameters = transponderParameters self.keepNumbers = keepNumbers self.keepSettings = keepSettings self.providerName = providerName self.createRadioBouquet = createRadioBouquet self.isDone = False self.onClose.append(self.__onClose) self["frontend"] = Pixmap() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) if hasattr(self.session, "pipshown") and self.session.pipshown: from Screens.InfoBar import InfoBar InfoBar.instance and hasattr( InfoBar.instance, "showPiP") and InfoBar.instance.showPiP() self.prevservice = self.session.nav.getCurrentlyPlayingServiceOrGroup() self.session.nav.stopService() self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.ok, "cancel": self.cancel }) self.onFirstExecBegin.append(self.doServiceScan)
def __init__(self, session): Screen.__init__(self, session) self.session = session skin = None if desktop_size <= 1280: if config.plugins.xtraEvent.skinSelect.value == "default": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_720_default.xml" elif config.plugins.xtraEvent.skinSelect.value == "skin_2": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_720_2.xml" elif config.plugins.xtraEvent.skinSelect.value == "skin_3": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_720_3.xml" else: if config.plugins.xtraEvent.skinSelect.value == "default": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_1080_default.xml" elif config.plugins.xtraEvent.skinSelect.value == "skin_2": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_1080_2.xml" elif config.plugins.xtraEvent.skinSelect.value == "skin_3": skin = "/usr/lib/enigma2/python/Plugins/Extensions/xtraEvent/skins/downloads_1080_3.xml" with open(skin, 'r') as f: self.skin = f.read() self.titles = "" self['status'] = Label() self['info'] = Label() self['info2'] = Label() self['key_red'] = Label(_('Close')) self['key_green'] = Label(_('Download')) # self['key_yellow'] = Label(_('Download')) # self['key_blue'] = Label(_('Manuel Search')) self['actions'] = ActionMap( ['SetupActions', 'ColorActions'], { 'cancel': self.close, 'red': self.close, 'ok': self.save, 'green': self.save }, -2) self['progress'] = ProgressBar() self['progress'].setRange((0, 100)) self['progress'].setValue(0)
def __init__(self, session): Screen.__init__(self, session) self.onChangedEntry = [] self.list = [] ConfigListScreen.__init__(self, self.list, session=session, on_change=self.changedEntry) self.setup_title = _('Setup Clear Memory') self['actions'] = ActionMap(['SetupActions', 'ColorActions'], {'cancel': self.keyCancel, 'green': self.keySave, 'ok': self.keySave, 'red': self.keyCancel, 'blue': self.freeMemory, 'yellow': self.memoryInfo}, -2) self['key_green'] = Label(_('Save')) self['key_red'] = Label(_('Cancel')) self['key_blue'] = Label(_('Clear Now')) self['key_yellow'] = Label(_('Info')) self['slide'] = ProgressBar() self['slide'].setValue(100) self['slide'].hide() self['memory'] = Label() self.runSetup() self.onLayoutFinish.append(self.layoutFinished)
def __init__(self, session, args=0): Screen.__init__(self, session) self.skinName = ["Setup"] self['spaceused'] = ProgressBar() self["status"] = ScrollLabel() self.onShown.append(self.setWindowTitle) list = [] list.append( getConfigListEntry(_('Enable OpenNfr MediaCenter ?'), config.opennfrwizard.enablemediacenter)) list.append( getConfigListEntry( _('Enable OpenNfr Skalli-FullHD-Mod Skin mod by Blasser ?'), config.opennfrwizard.enableskalliskin)) list.append( getConfigListEntry(_('Enable OpenNfr MainMenu2 ?'), config.opennfrwizard.enablemainmenu2)) list.append( getConfigListEntry(_('Enable OpenNfr Webinterface ?'), config.opennfrwizard.enablewebinterface)) self["key_red"] = Label(_("Exit")) self["key_green"] = Label(_("Save")) self['label1'] = Label( _('IF you install this Plugins with not enough Flashmemory it comes to trouble\nThe image could be destroyed!\n\nWebInterface 3.6MB\nBMediacenter 6.4MB\nSkalli 4.5MB\nMainmenu2 3.6MB' )) self['label2'] = Label(_('% Flash Used....')) self['label3'] = Label( _('Warning!!! If you select No, Existing Installations will be deleted!!' )) ConfigListScreen.__init__(self, list) self['actions'] = ActionMap( ['OkCancelActions', 'ColorActions'], { 'red': self.dontSaveAndExit, 'green': self.run, 'cancel': self.dontSaveAndExit }, -1)
def __init__(self, session, scanList): Screen.__init__(self, session) self.scanList = scanList self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) self["network"] = Label() self["transponder"] = Label() self["pass"] = Label("") self["servicelist"] = FIFOList(len=10) self["FrontendInfo"] = FrontendInfo() self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.ok, "cancel": self.cancel }) self.onFirstExecBegin.append(self.doServiceScan)
def __init__(self, session, filename, url): self.session = session self.skin = downloadfile.skin Screen.__init__(self, session) self.url = url self.filename = filename self.infoTimer = eTimer() self.infoTimer.timeout.get().append(self.updateInfo) self.Shown = True self["info"] = Label(_("Downloading Plugin: %s") % self.filename) self["progress"] = ProgressBar() self["precent"] = Label() self["actions"] = ActionMap( ["OkCancelActions", "ColorActions"], { "ok": self.okClicked, "cancel": self.exit, "green": self.okClicked, "red": self.exit }, -1) self["key_red"] = Label(_("Cancel")) self["key_green"] = Label(_("Show/Hide")) self.onLayoutFinish.append(self.downloadPlugin)
def __init__(self, session, scanList): Screen.__init__(self, session) self.scanList = scanList if hasattr(session, 'infobar'): self.currentInfobar = session.infobar if self.currentInfobar: self.currentServiceList = self.currentInfobar.servicelist if self.session.pipshown and self.currentServiceList: if self.currentServiceList.dopipzap: self.currentServiceList.togglePipzap() del self.session.pip self.session.pipshown = False else: self.currentInfobar = None self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label(_("scan state")) self["network"] = Label() self["transponder"] = Label() self["pass"] = Label("") self["servicelist"] = FIFOList(len=10) self["FrontendInfo"] = FrontendInfo() self.timer = eTimer() self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.ok, "cancel": self.cancel }) self.onClose.append(self.__onClose) self.onFirstExecBegin.append(self.doServiceScan)