Example #1
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		self.skinName = "Setup"
		Screen.setTitle(self, _("Softcam-Panel Setup") + "...")
		self.setup_title = _("Softcam-Panel Setup") + "..."
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		self["status"] = StaticText()
		self['footnote'] = Label("")
		self["description"] = Label("")
		self["labelExitsave"] = Label("[Exit] = " +_("Cancel") +"              [Ok] =" +_("Save"))
		CamCheckStop()

		self.onChangedEntry = [ ]
		self.list = []
		ConfigListScreen.__init__(self, self.list, session = self.session, on_change = self.changedEntry)
		self.createSetup()

		self["actions"] = ActionMap(["SetupActions", 'ColorActions'],
		{
			"ok": self.keySave,
			"cancel": self.keyCancel,
			"red": self.keyCancel,
			"green": self.keySave,
			"menu": self.keyCancel,
		}, -2)

		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))
		if not self.selectionChanged in self["config"].onSelectionChanged:
			self["config"].onSelectionChanged.append(self.selectionChanged)
		self.selectionChanged()
Example #2
0
	def __init__(self, session, menu_path="", args=None):
		Screen.__init__(self, session)
		screentitle = _("Button setup")
		if config.usage.show_menupath.value == 'large':
			menu_path += screentitle
			title = menu_path
			self["menu_path_compressed"] = StaticText("")
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(' / ') else menu_path[:-3] + " >" or "")
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)
		self['description'] = Label(_('On your remote, click on the button you want to change'))
		self.session = session
		self.list = []
		self.ButtonSetupFunctions = getButtonSetupFunctions()
		for x in ButtonSetupKeys:
			self.list.append(ChoiceEntryComponent('',(_(x[0]), x[1])))
		self["list"] = ChoiceList(list=self.list[:config.misc.ButtonSetup.additional_keys.value and len(ButtonSetupKeys) or 10], selection = 0)
		self["choosen"] = ChoiceList(list=[])
		self.getFunctions()
		self["actions"] = ActionMap(["OkCancelActions"],
		{
			"cancel": self.close,
		}, -1)
		self["ButtonSetupButtonActions"] = ButtonSetupActionMap(["ButtonSetupActions"], dict((x[1], self.ButtonSetupGlobal) for x in ButtonSetupKeys))
		self.longkeyPressed = False
		self.onLayoutFinish.append(self.__layoutFinished)
		self.onExecBegin.append(self.getFunctions)
		self.onShown.append(self.disableKeyMap)
		self.onClose.append(self.enableKeyMap)
Example #3
0
	def __init__(self, session, silent = True, showSteps = False, neededTag = None):
		self.xmlfile = ["startwizard.xml"]
		WizardLanguage.__init__(self, session, showSteps = False)
		Rc.__init__(self)
		self["wizard"] = Pixmap()
		#Screen.setTitle(self, _("Welcome..."))
		Screen.setTitle(self, _("StartWizard"))
Example #4
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Select extra packages folder"))
		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("Save"))

		defaultDir = config.backupmanager.backuplocation.value
		self.filelist = FileList(defaultDir, showFiles=True, matchingPattern='^.*.(ipk)')
		self["checkList"] = self.filelist

		self["actions"] = ActionMap(["DirectionActions", "OkCancelActions", "ShortcutActions", "MenuActions"],
									{
									"cancel": self.exit,
									"red": self.exit,
									"green": self.saveSelection,
									"ok": self.okClicked,
									"left": self.left,
									"right": self.right,
									"down": self.down,
									"up": self.up,
									"menu": self.exit,
									}, -1)
		if not self.selectionChanged in self["checkList"].onSelectionChanged:
			self["checkList"].onSelectionChanged.append(self.selectionChanged)
		self.onLayoutFinish.append(self.layoutFinished)
Example #5
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Backup Manager"))

		self['lab1'] = Label()
		self["backupstatus"] = Label()
		self["key_green"] = Button()
		self["key_yellow"] = Button(_("Restore"))
		self["key_red"] = Button(_("Delete"))

		self.BackupRunning = False
		self.onChangedEntry = []
		self.emlist = []
		self['list'] = MenuList(self.emlist)
		self.populate_List()
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.backupRunning)
		self.activityTimer.start(10)
		self.Console = Console()

		if BackupTime > 0:
			t = localtime(BackupTime)
			backuptext = _("Next Backup: ") + strftime(_("%a %e %b  %-H:%M"), t)
		else:
			backuptext = _("Next Backup: ")
		self["backupstatus"].setText(str(backuptext))
		if not self.selectionChanged in self["list"].onSelectionChanged:
			self["list"].onSelectionChanged.append(self.selectionChanged)
    def __init__(self, session, parent, childNode, url):
        Screen.__init__(self, session)
        Screen.setTitle(self, _('EGAMI On Line Addons Installation'))
        menuList = []
        self.multi = False
        self.url = url
        try:
            header = parent.getAttribute('text').encode('UTF-8')
            menuType = parent.getAttribute('type').encode('UTF-8')
            if menuType == 'multi':
                self.multi = True
            else:
                self.multi = False
            menuList = self.buildMenuTree(childNode)
        except:
            tracefp = StringIO.StringIO()
            traceback.print_exc(file=tracefp)
            message = tracefp.getvalue()

        if self.multi:
            self['menu'] = EGListaAddonow(menuList)
        else:
            self['menu'] = MenuList(menuList)
        self['actions'] = ActionMap(['ColorActions', 'OkCancelActions', 'MovieSelectionActions'], {'ok': self.nacisniecieOK,
         'red': self.nacisniecieOK,
         'cancel': self.closeNonRecursive,
         'exit': self.closeRecursive,
         'green': self.showAddonInfo})
        self['status'] = Label(_('Please, choose addon to install:'))
        self['key_red'] = Label(_('Download'))
        self['key_green'] = Label(_('Preview'))
        self.state = self.STATE_IDLE
        self.StateTimer = eTimer()
        self.StateTimer.stop()
        self.StateTimer.timeout.get().append(self.uruchomInstalator)
Example #7
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Tuner configuration"))

		self.list = [None] * nimmanager.getSlotCount()
		self["nimlist"] = List(self.list)
		self.loadFBCLinks()
		self.updateList()

		self.setResultClass()

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Select"))

		self["actions"] = ActionMap(["SetupActions", "ColorActions", "MenuActions", "ChannelSelectEPGActions"],
		{
			"ok": self.okbuttonClick,
			"info": self.extraInfo,
			"epg": self.extraInfo,
			"cancel": self.close,
			"red": self.close,
			"green": self.okbuttonClick,
			"menu": self.exit,
		}, -2)
		self.setTitle(_("Choose Tuner"))
Example #8
0
	def __init__(self, session):
		Screen.__init__(self, session)
		if not path.exists('/etc/cron/scripts'):
			mkdir('/etc/cron/scripts', 0755)
		Screen.setTitle(self, _("Cron Manager"))
		self.onChangedEntry = [ ]
		self['lab1'] = Label(_("Autostart:"))
		self['labactive'] = Label(_(_("Active")))
		self['labdisabled'] = Label(_(_("Disabled")))
		self['lab2'] = Label(_("Current Status:"))
		self['labstop'] = Label(_("Stopped"))
		self['labrun'] = Label(_("Running"))
		self['labrun'].hide()
		self['labactive'].hide()
		self.summary_running = ''
		self['key'] = Label(_("H: = Hourly / D: = Daily / W: = Weekly / M: = Monthly"))
		self.Console = Console()
		self.my_crond_active = False
		self.my_crond_run = False

		self['key_red'] = Label(_("Delete"))
		self['key_green'] = Label(_("Add"))
		self['key_yellow'] = Label(_("Start"))
		self['key_blue'] = Label(_("Autostart"))
		self.list = []
		self['list'] = List(self.list)
		self['actions'] = ActionMap(['WizardActions', 'ColorActions', "MenuActions"], {'ok': self.info, 'back': self.UninstallCheck, 'red': self.delcron, 'green': self.addtocron, 'yellow': self.CrondStart, 'blue': self.autostart, "menu": self.closeRecursive})
		if not self.selectionChanged in self["list"].onSelectionChanged:
			self["list"].onSelectionChanged.append(self.selectionChanged)
		self.service_name = 'busybox-cron'
		self.InstallCheck()
Example #9
0
	def __init__(self, session, online ):
		Screen.__init__(self, session)
		self.session = session

		Screen.setTitle(self, _("Flash On the fly (select a image)"))
		self["key_green"] = Button(_("Flash"))
		self["key_red"] = Button(_("Exit"))
		self["key_blue"] = Button("")
		self["key_yellow"] = Button("")
		self.filename = None
		self.imagelist = []
		self.simulate = False
		self.Online = online
		self.imagePath = imagePath
		self.feedurl = feedurl_hdf
		if image == 0:
			self.feed = "atv"
		else:
			self.feed = "hdf"
		self["imageList"] = MenuList(self.imagelist)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
		{
			"green": self.green,
			"ok": self.green,
			"yellow": self.yellow,
			"red": self.quit,
			"blue": self.blue,
			"cancel": self.quit,
		}, -2)
		self.onLayoutFinish.append(self.layoutFinished)
Example #10
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setup_title = _("AutoBouquetsMaker")
		Screen.setTitle(self, self.setup_title)
		self.init_level = config.autobouquetsmaker.level.getValue()
		self.init_providers = config.autobouquetsmaker.providers.getValue()
		self.init_keepallbouquets = config.autobouquetsmaker.keepallbouquets.getValue()
		self.init_schedule = config.autobouquetsmaker.schedule.getValue()
		self.init_scheduletime = config.autobouquetsmaker.scheduletime.getValue()
		self.init_frequencyfinder = config.autobouquetsmaker.frequencyfinder.getValue()
		print '[ABM-menu][__init__] self.init_schedule',self.init_schedule
		print '[ABM-menu][__init__] self.init_scheduletime',self.init_scheduletime

		self.onChangedEntry = [ ]
		l = []

		self["list"] = List(l)

		self["setupActions"] = ActionMap(["ColorActions", "SetupActions", "MenuActions"],
		{
			"red": self.quit,
			"green": self.startScan,
			"cancel": self.quit,
			"ok": self.openSelected,
			"menu": self.quit,
		}, -2)
		self["key_red"] = Button(_("Exit"))
		self["key_green"] = Button(_("Scan"))


		self.createsetup()
		if len(config.autobouquetsmaker.providers.value) < 1:
			self.onFirstExecBegin.append(self.openSetup)
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		Screen.setTitle(self, _("AutoBouquetsMaker Hide sections"))
		self.startlist = config.autobouquetsmaker.hidesections.getValue()
		self.drawList = []

		self["list"] = List(self.drawList)
		self["key_red"] = Button(_("Cancel"))
		self["key_green"] = Button("Save")
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
				{
					"red": self.keyCancel,
					"green": self.keySave,
					"ok": self.ok,
					"cancel": self.keyCancel,
				}, -2)

		self.providers = Manager().getProviders()
		self.providers_enabled = []
		providers_tmp = config.autobouquetsmaker.providers.value.split("|")
		for provider_tmp in providers_tmp:
			provider_config = ProviderConfig(provider_tmp)
			
			if not provider_config.isValid():
				continue
				
			if provider_config.getProvider() not in self.providers:
				continue
				
			self.providers_enabled.append(provider_config.getProvider())
			
		self.refresh()
Example #12
0
	def __init__(self, session, menulist):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Restore Plugins"))
		self.index = 0
		self.list = menulist
		for r in menulist:
			print "[SOFTWARE MANAGER] Plugin to restore: %s" % r[0]
		self.container = eConsoleAppContainer()
		self["menu"] = List(list())
		self["menu"].onSelectionChanged.append(self.selectionChanged)
		self["key_green"] = Button(_("Install"))
		self["key_red"] = Button(_("Cancel"))
		self["summary_description"] = StaticText("")
				
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
				{
					"red": self.exit,
					"green": self.green,
					"cancel": self.exit,
					"ok": self.ok
				}, -2)

		self["menu"].setList(menulist)
		self["menu"].setIndex(self.index)
		self.selectionChanged()
		self.onShown.append(self.setWindowTitle)
Example #13
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setup_title = _("Bouquets order")
		Screen.setTitle(self, self.setup_title)

		self.providers_order = config.autobouquetsmaker.providers.value.split("|")
		self.has_changed = False

		self.onChangedEntry = [ ]
		self.list = []
		self["list"] = List(self.list)
		self["list"].onSelectionChanged.append(self.selectionChanged)

		self["key_red"] = Button(_("Cancel"))
		self["key_green"] = Button("Save")
		self["key_yellow"] = Button("")
		self["key_blue"] = Button("")
		self["actions"] = ActionMap(["SetupActions", "ColorActions", "MenuActions"],
		{
			"cancel": self.keyCancel,
			"red": self.keyCancel,
			"green": self.keySave,
			"yellow": self.moveUp,
			"blue": self.moveDown,
			"menu": self.keyCancel,
		}, -2)

		self["pleasewait"] = Label()

		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.prepare)

		self.onLayoutFinish.append(self.populate)
Example #14
0
	def __init__(self, session, args = None):

		self.skin = """<screen position="100,100" size="500,210" title="LED Display Setup" >
				<widget name="config" position="20,15" size="460,150" scrollbarMode="showOnDemand" />
				<ePixmap position="40,165" size="140,40" pixmap="skin_default/buttons/green.png" alphatest="on" />
				<ePixmap position="180,165" size="140,40" pixmap="skin_default/buttons/red.png" alphatest="on" />
				<widget name="key_green" position="40,165" size="140,40" font="Regular;20" backgroundColor="#1f771f" zPosition="2" transparent="1" shadowColor="black" shadowOffset="-1,-1" />
				<widget name="key_red" position="180,165" size="140,40" font="Regular;20" backgroundColor="#9f1313" zPosition="2" transparent="1" shadowColor="black" shadowOffset="-1,-1" />
			</screen>"""

		Screen.__init__(self, session)
		Screen.setTitle(self, _("7-LED Display Setup"))
		self.skinName = ["Setup"]
		self.onClose.append(self.abort)

		self.onChangedEntry = [ ]
		self.list = []
		ConfigListScreen.__init__(self, self.list, session = self.session, on_change = self.changedEntry)

		self.createSetup()

		self.Console = Console()
		self["key_red"] = Button(_("Cancel"))
		self["key_green"] = Button(_("Save"))

		self["setupActions"] = ActionMap(["SetupActions","ColorActions"],
		{
			"save": self.save,
			"cancel": self.cancel,
			"ok": self.save,
		}, -2)
Example #15
0
 def __init__(self, session, *args):
     Screen.__init__(self, session)
     ProtectedScreen.__init__(self)
     Screen.setTitle(self, _('Software Update'))
     self.sliderPackages = {'ini-dvb-modules': 1,
      'enigma2': 2,
      'tuxbox-image-info': 3}
     self.slider = Slider(0, 4)
     self['slider'] = self.slider
     self.activityslider = Slider(0, 100)
     self['activityslider'] = self.activityslider
     self.status = StaticText(_('Please wait...'))
     self['status'] = self.status
     self.package = StaticText(_('Package list update'))
     self['package'] = self.package
     self.oktext = _('Press OK on your remote control to continue.')
     self['tl_off'] = Pixmap()
     self['tl_red'] = Pixmap()
     self['tl_yellow'] = Pixmap()
     self['tl_green'] = Pixmap()
     self['feedStatusMSG'] = Label()
     self.channellist_only = 0
     self.channellist_name = ''
     self.SettingsBackupDone = False
     self.ImageBackupDone = False
     self.autobackuprunning = False
     self.packages = 0
     self.error = 0
     self.processed_packages = []
     self.total_packages = None
     self.onFirstExecBegin.append(self.checkNetworkState)
Example #16
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Select files/folders to backup"))
		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("Save"))
		self["key_yellow"] = StaticText()

		self.selectedFiles = config.backupmanager.backupdirs.value
		defaultDir = '/'
		self.filelist = MultiFileSelectList(self.selectedFiles, defaultDir)
		self["checkList"] = self.filelist

		self["actions"] = ActionMap(["DirectionActions", "OkCancelActions", "ShortcutActions", "MenuActions"],
									{
									"cancel": self.exit,
									"red": self.exit,
									"yellow": self.changeSelectionState,
									"green": self.saveSelection,
									"ok": self.okClicked,
									"left": self.left,
									"right": self.right,
									"down": self.down,
									"up": self.up,
									"menu": self.exit,
									}, -1)
		if not self.selectionChanged in self["checkList"].onSelectionChanged:
			self["checkList"].onSelectionChanged.append(self.selectionChanged)
		self.onLayoutFinish.append(self.layoutFinished)
Example #17
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		self.setup_title = _("AutoBouquetsMaker Configure")
		Screen.setTitle(self, self.setup_title)

		self.onChangedEntry = [ ]
		self.list = []
		ConfigListScreen.__init__(self, self.list, session = self.session, on_change = self.changedEntry)

		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.prepare)

		self["actions"] = ActionMap(["SetupActions", 'ColorActions', 'VirtualKeyboardActions', "MenuActions"],
		{
			"ok": self.keySave,
			"cancel": self.keyCancel,
			"red": self.keyCancel,
			"green": self.keySave,
			"menu": self.keyCancel,
		}, -2)

		self["key_red"] = Button(_("Cancel"))
		self["key_green"] = Button(_("OK"))
		self["description"] = Label(_(""))
		self["pleasewait"] = Label()

		self.onLayoutFinish.append(self.populate)
Example #18
0
	def __init__(self, session, fe_num, text):
		Screen.__init__(self, session)
		self.setup_title = _("Blind scan state")
		Screen.setTitle(self, _(self.setup_title))
		self["list"]=List()
		self["text"]=Label()
		self["text"].setText(text)
		self["post_action"]=Label()
		self["progress"]=Label()
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
		{
			"ok": self.keyOk,
			"cancel": self.keyCancel,
			"green": self.keyGreen,
		}, -2)
		self.fe_num = fe_num
		self["constellation"] = CanvasSource()
		self.onLayoutFinish.append(self.updateConstellation)
		self.tmr = eTimer()
		self.tmr.callback.append(self.updateConstellation)
		self.constellation_supported = None
		if fe_num != -1:
			self.post_action=1
			self.finished=0
			self.keyGreen()
		else:
			self.post_action=-1
Example #19
0
	def ShowTransponderInformation(self):
		menu_path = self.menu_path
		screentitle = ""
		if self.type == TYPE_SERVICE_INFO:
			if self.feinfo and self.feinfo.getAll(True):
				if self["key_blue"].text == _("Tuner settings values"):
					screentitle = _("Tuning info: settings values")
					self["key_blue"].text = self["blue"].text = _("Tuner live values")
					frontendData = self.feinfo and self.feinfo.getAll(True)
				else:
					screentitle = _("Tuning info: live values")
					self["key_blue"].text = self["blue"].text = _("Tuner settings values")
					frontendData = self.feinfo and self.feinfo.getAll(False)
				self.fillList(self.getFEData(frontendData))
			elif self.transponder_info:
				screentitle = _("Tuning info: settings values")
				self["key_blue"].text = self["blue"].text = _("Tuner settings values")
				self.fillList(self.getFEData(self.transponder_info))
				

			if config.usage.show_menupath.value == 'large':
				menu_path += screentitle
				title = menu_path
				self["menu_path_compressed"] = StaticText("")
			elif config.usage.show_menupath.value == 'small':
				title = screentitle
				self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(' / ') else menu_path[:-3] + " >" or "")
			else:
				title = screentitle
				self["menu_path_compressed"] = StaticText("")
			Screen.setTitle(self, title)
Example #20
0
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Tuner settings"))
		self.list = [ ]

		ServiceStopScreen.__init__(self)
		self.stopService()

		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Save"))

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction", "ColorActions"],
		{
			"ok": self.keySave,
			"cancel": self.keyCancel,
			"nothingconnected": self.nothingConnectedShortcut,
			"red": self.keyCancel,
			"green": self.keySave,
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
Example #21
0
	def __init__(self, session, *args):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Software Update"))

		self.sliderPackages = { "dreambox-dvb-modules": 1, "enigma2": 2, "tuxbox-image-info": 3 }

		self.setTitle(_("Software update"))
		self.slider = Slider(0, 4)
		self["slider"] = self.slider
		self.activityslider = Slider(0, 100)
		self["activityslider"] = self.activityslider
		self.status = StaticText(_("Please wait..."))
		self["status"] = self.status
		self.package = StaticText(_("Package list update"))
		self["package"] = self.package
		self.oktext = _("Press OK on your remote control to continue.")

		self.channellist_only = 0
		self.channellist_name = ''
		self.SettingsBackupDone = False
		self.ImageBackupDone = False
		self.autobackuprunning = False

		self.packages = 0
		self.error = 0
		self.processed_packages = []
		self.total_packages = None
		self.checkNetworkState()
	def __init__(self, session, online ):
		Screen.__init__(self, session)
		self.session = session

		Screen.setTitle(self, _("Flash On the fly (select a image)"))
		self["key_green"] = Button(_("Flash"))
		self["key_red"] = Button(_("Exit"))
		self["key_blue"] = Button("")
		self["key_yellow"] = Button("")
		self.filename = None
		self.imagelist = []
		self.simulate = False
		self.Online = online
		self.imagePath = imagePath
		self.feedurl = feedurl_a4y
		self.feed = "a4y"
		self["imageList"] = MenuList(self.imagelist)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
		{
			"green": self.green,
			"yellow": self.yellow,
			"red": self.quit,
			"blue": self.blue,
			"cancel": self.quit,
		}, -2)
		self.onLayoutFinish.append(self.layoutFinished)
		self.newfeed = None
		if os.path.exists('/etc/enigma2/newfeed'):
			self.newfeed = ReadNewfeed()
Example #23
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setup_title = _("Blind scan for dreambox DVB-S2 tuners")
		Screen.setTitle(self, _(self.setup_title))
		self.updateSatList()
		self.service = session.nav.getCurrentService()
		self.feinfo = None
		frontendData = None
		if self.service is not None:
			self.feinfo = self.service.frontendInfo()
			frontendData = self.feinfo and self.feinfo.getAll(True)
		self.createConfig(frontendData)
		del self.feinfo
		del self.service
		try:
			self.session.postScanService = self.session.nav.getCurrentlyPlayingServiceOrGroup()
		except:
			self.session.postScanService = self.session.nav.getCurrentlyPlayingServiceReference()

		self["actions"] = NumberActionMap(["SetupActions"],
		{
			"ok": self.keyGo,
			"cancel": self.keyCancel,
		}, -2)

		self.list = []
		ConfigListScreen.__init__(self, self.list)
		if not self.scan_nims.value == "":
			self.createSetup()
			self["introduction"] = Label(_("Press OK to start the scan"))
		else:
			self["introduction"] = Label(_("Nothing to scan!\nPlease setup your tuner settings before you start a service scan."))
Example #24
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		self.selection = 0
		self.devrootfs = "/dev/mmcblk0p3"
		self.multi = 1
		self.list = self.list_files("/boot")

		Screen.setTitle(self, _("Flash On the Fly"))
		if SystemInfo["HaveMultiBoot"]:
			self["key_yellow"] = StaticText(_("STARTUP"))
		else:
			self["key_yellow"] = StaticText("")
		self["key_green"] = StaticText("Online")
		self["key_red"] = StaticText(_("Exit"))
		self["key_blue"] = StaticText(_("Local"))
		self["info-local"] = Label(_("Local = Flash a image from local path /hdd/images"))
		self["info-online"] = Label(_("Online = Download a image and flash it"))
		
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], 
		{
			"blue": self.blue,
			"yellow": self.yellow,
			"green": self.green,
			"red": self.quit,
			"cancel": self.quit,
		}, -2)
		if SystemInfo["HaveMultiBoot"]:
			self.multi = self.read_startup("/boot/" + self.list[self.selection]).split(".",1)[1].split(" ",1)[0]
			self.multi = self.multi[-1:]
			print "[Flash Online] MULTI:",self.multi
Example #25
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _("NFS Setup"))
     self.skinName = "NetworkNfs"
     self.onChangedEntry = []
     self["lab1"] = Label(_("Autostart:"))
     self["labactive"] = Label(_(_("Disabled")))
     self["lab2"] = Label(_("Current Status:"))
     self["labstop"] = Label(_("Stopped"))
     self["labrun"] = Label(_("Running"))
     self["key_green"] = Label(_("Start"))
     self["key_red"] = Label(_("Remove Service"))
     self["key_yellow"] = Label(_("Autostart"))
     self["key_blue"] = Label()
     self.Console = Console()
     self.my_nfs_active = False
     self.my_nfs_run = False
     self["actions"] = ActionMap(
         ["WizardActions", "ColorActions"],
         {
             "ok": self.close,
             "back": self.close,
             "red": self.UninstallCheck,
             "green": self.NfsStartStop,
             "yellow": self.Nfsset,
         },
     )
     self.service_name = basegroup + "-nfs"
     self.onLayoutFinish.append(self.InstallCheck)
Example #26
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Swap Manager"))
		self['lab1'] = Label()
		self['autostart_on'] = Pixmap()
		self['autostart_off'] = Pixmap()
		self['lab2'] = Label(_("Swap Place:"))
		self['labplace'] = Label()
		self['lab3'] = Label(_("Swap Size:"))
		self['labsize'] = Label()
		self['lab4'] = Label(_("Status:"))
		self['inactive'] = Label(_("Inactive"))
		self['active'] = Label(_("Active"))
		self['key_red'] = Label(_("Activate"))
		self['key_green'] = Label(_("Create"))
		self['key_yellow'] = Label(_("Autostart"))
		self['swapname_summary'] = StaticText()
		self['swapactive_summary'] = StaticText()
		self.Console = Console()
		self.swap_place = ''
		self.new_place = ''
		self.creatingswap = False
		self['actions'] = ActionMap(['WizardActions', 'ColorActions', "MenuActions"], {'back': self.close, 'red': self.actDeact, 'green': self.createDel, 'yellow': self.autoSsWap, "menu": self.close})
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.getSwapDevice)
		self.updateSwap()
Example #27
0
	def __init__(self, session, slotid):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Tuner settings"))
		self.list = [ ]
		ServiceStopScreen.__init__(self)
		self.stopService()
		ConfigListScreen.__init__(self, self.list)

		self["key_red"] = Label(_("Close"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Configuration mode"))
		self["key_blue"] = Label()

		self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction", "ColorActions"],
		{
			"ok": self.keyOk,
			"save": self.keySave,
			"cancel": self.keyCancel,
			"changetype": self.changeConfigurationMode,
			"nothingconnected": self.nothingConnectedShortcut,
			"red": self.keyCancel,
			"green": self.keySave,
		}, -2)

		self.slotid = slotid
		self.nim = nimmanager.nim_slots[slotid]
		self.nimConfig = self.nim.config
		self.createConfigMode()
		self.createSetup()
		self.onLayoutFinish.append(self.layoutFinished)
Example #28
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('Timer List'))
     self.onChangedEntry = []
     list = []
     self.list = list
     self.fillTimerList()
     self['timerlist'] = TimerList(list)
     self.key_red_choice = self.EMPTY
     self.key_yellow_choice = self.EMPTY
     self.key_blue_choice = self.EMPTY
     self['key_red'] = Button(' ')
     self['key_green'] = Button(_('Add'))
     self['key_yellow'] = Button(' ')
     self['key_blue'] = Button(' ')
     self['description'] = Label()
     self['actions'] = ActionMap(['OkCancelActions',
      'DirectionActions',
      'ShortcutActions',
      'TimerEditActions'], {'ok': self.openEdit,
      'cancel': self.leave,
      'green': self.addCurrentTimer,
      'log': self.showLog,
      'left': self.left,
      'right': self.right,
      'up': self.up,
      'down': self.down}, -1)
     self.setTitle(_('Timer overview'))
     self.session.nav.RecordTimer.on_state_change.append(self.onStateChange)
     self.onShown.append(self.updateState)
     if self.isProtected() and config.ParentalControl.servicepin[0].value:
         self.onFirstExecBegin.append(boundFunction(self.session.openWithCallback, self.pinEntered, PinInput, pinList=[ x.value for x in config.ParentalControl.servicepin ], triesEntry=config.ParentalControl.retries.servicepin, title=_('Please enter the correct pin code'), windowTitle=_('Enter pin code')))
Example #29
0
	def __init__(self, session, hostname, url):
		Screen.__init__(self, session)
		self.session = session
		Screen.setTitle(self, _("CCcam Share Info"))
		self.hostname = hostname
		self.url = url
		self.list = []
		self.uphops = -1
		self.maxdown = -1
		self.working = True

		self["key_red"] = Label(_("Uphops +"))
		self["key_green"] = Label(_("Uphops -"))
		self["key_yellow"] = Label(_("Maxdown +"))
		self["key_blue"] = Label(_("Maxdown -"))
		self["list"] = CCcamShareList([])

		self["actions"] = ActionMap(["CCcamInfoActions"],
			{
				"cancel": self.exit,
				"red": self.uhopsPlus,
				"green": self.uhopsMinus,
				"yellow": self.maxdownPlus,
				"blue": self.maxdownMinus
			}, -1)

		self.onLayoutFinish.append(self.readShares)
Example #30
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Plugin Browser"))

		self.firsttime = True

		self["key_red"] = Button(_("Remove plugins"))
		self["key_green"] = Button(_("Download plugins"))

		self.list = []
		self["list"] = PluginList(self.list)
		if config.usage.sort_pluginlist.getValue():
			self["list"].list.sort()

		self["actions"] = ActionMap(["WizardActions", "MenuActions"],
		{
			"ok": self.save,
			"back": self.close,
			"menu": self.openSetup,
		})
		self["PluginDownloadActions"] = ActionMap(["ColorActions"],
		{
			"red": self.delete,
			"green": self.download
		})

		self.onFirstExecBegin.append(self.checkWarnings)
		self.onShown.append(self.updateList)
		self.onChangedEntry = []
		self["list"].onSelectionChanged.append(self.selectionChanged)
		self.onLayoutFinish.append(self.saveListsize)
Example #31
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.skinName = [self.skinName, "Setup"]
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		self["VKeyIcon"] = Boolean(False)
		self['footnote'] = Label("")
		self["description"] = Label()

		# Summary
		self.setup_title = _("EPGSearch Setup")
		Screen.setTitle(self, _(self.setup_title))
		self.onChangedEntry = []

		ConfigListScreen.__init__(self, [], session = session, on_change = self.changedEntry)
		self.notifiers = (
			config.plugins.epgsearch.scope,
			config.plugins.epgsearch.enableorbpos,
			config.plugins.epgsearch.invertorbpos,
			config.plugins.epgsearch.numorbpos,
		)
		nChoices = updateOrbposConfig(save=True)
		if nChoices <= 2:
			config.plugins.epgsearch.enableorbpos.value = False
		self.createConfig()
		self.addNotifiers()
		self.onClose.append(self.clearNotifiers)

		self["actions"] = ActionMap(["SetupActions", 'ColorActions'],
		{
			"red": self.cancel,
			"green": self.save,
			"save": self.save,
			"cancel": self.cancel,
			"ok": self.save,
		}, -2)
		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))
Example #32
0
    def __init__(self, session, menu_path=""):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("MultiBoot Image Manager"))
        self["key_red"] = StaticText(_("Cancel"))
        self["description"] = StaticText(
            _("Use the cursor keys to select an installed image and then Erase button."
              ))
        self["options"] = StaticText(
            _("Note: slot list does not show current image or empty slots."))
        self["key_green"] = StaticText(_("Erase"))
        self["key_yellow"] = StaticText("")
        self["config"] = ChoiceList(list=[
            ChoiceEntryComponent('', (
                (_("Retrieving image slots - Please wait...")), "Queued"))
        ])
        imagedict = []
        self.getImageList = None
        self.startit()

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "ColorActions", "DirectionActions",
                "KeyboardInputActions", "MenuActions"
            ], {
                "red": boundFunction(self.close, None),
                "green": self.erase,
                "cancel": boundFunction(self.close, None),
                "up": self.keyUp,
                "down": self.keyDown,
                "left": self.keyLeft,
                "right": self.keyRight,
                "upRepeated": self.keyUp,
                "downRepeated": self.keyDown,
                "leftRepeated": self.keyLeft,
                "rightRepeated": self.keyRight,
                "menu": boundFunction(self.close, True),
            }, -1)
        self.onLayoutFinish.append(self.layoutFinished)
Example #33
0
	def __init__(self, session, menu_path="", screenTitle=_("GUI Skin")):
		self.hackSkin()  # This is a hack to ensure the SkinConverter screen works with the new code.
		Screen.__init__(self, session)
		HelpableScreen.__init__(self)
		if config.usage.show_menupath.value == 'large':
			menu_path += screenTitle
			title = menu_path
			self["menu_path_compressed"] = StaticText("")
		elif config.usage.show_menupath.value == 'small':
			title = screenTitle
			self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(" / ") else menu_path[:-3] + " >" or "")
		else:
			title = screenTitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)
		self.skinName = ["SkinSelector"]
		self.rootDir = resolveFilename(SCOPE_SKIN)
		self.config = config.skin.primary_skin
		self.xmlList = ["skin.xml"]
		self.onChangedEntry = []
		self["skins"] = List(enableWrapAround=True)
		self["preview"] = Pixmap()
		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("Save"))
		self["description"] = StaticText(_("Please wait... Loading list..."))
		self["actions"] = HelpableNumberActionMap(self, ["SetupActions", "DirectionActions", "ColorActions"], {
			"ok": (self.save, _("Activate the currently selected skin")),
			"cancel": (self.cancel, _("Revert to the currently active skin")),
			"red": (self.cancel, _("Revert to the currently active skin")),
			"green": (self.save, _("Activate the currently selected skin")),
			"up": (self.up, _("Move to the previous skin")),
			"down": (self.down, _("Move to the next skin")),
			"left": (self.left, _("Move to the previous page")),
			"right": (self.right, _("Move to the next page"))
		}, -1, description=_("Skin Selection Actions"))
		self.picload = ePicLoad()
		self.picload.PictureData.get().append(self.showPic)
		self.onLayoutFinish.append(self.layoutFinished)
Example #34
0
	def __init__(self, session):
		self.session = session
		if (getDesktop(0).size().width() < 800):
			skin = "%s/skins/about_sd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
		else:
			skin = "%s/skins/about_hd.xml" % (os.path.dirname(sys.modules[__name__].__file__))
		f = open(skin, "r")
		self.skin = f.read()
		f.close()

		Screen.__init__(self, session)
		Screen.setTitle(self, _("CrossEPG") + " - " + _("About"))

		self.config = CrossEPG_Config()
		self.config.load()

		self["about"] = Label("")
		self["rytec_pix"] = Pixmap()
		self["rytec_text"] = Label("")
		self["krkadoni_pix"] = Pixmap()
		self["krkadoni_text"] = Label("")

		self["actions"] = ActionMap(["SetupActions", "ColorActions", "MenuActions"],
		{
			"red": self.quit,
			"cancel": self.quit,
			"menu": self.quit,
		}, -2)

		self["key_red"] = Button(_("Close"))
		self["key_green"] = Button("")
		self["key_yellow"] = Button("")
		self["key_blue"] = Button("")

		try:
			from version import version
		except Exception, e:
			version = "unknow version"
Example #35
0
    def __init__(self, session, parent, childNode, url):
        Screen.__init__(self, session)
        Screen.setTitle(self, _('EGAMI On Line Addons Installation'))
        menuList = []
        self.multi = False
        self.url = url
        try:
            header = parent.getAttribute('text').encode('UTF-8')
            menuType = parent.getAttribute('type').encode('UTF-8')
            if menuType == 'multi':
                self.multi = True
            else:
                self.multi = False
            menuList = self.buildMenuTree(childNode)
        except:
            tracefp = StringIO.StringIO()
            traceback.print_exc(file=tracefp)
            message = tracefp.getvalue()

        if self.multi:
            self['menu'] = EGListaAddonow(menuList)
        else:
            self['menu'] = MenuList(menuList)
        self['actions'] = ActionMap(
            ['ColorActions', 'OkCancelActions', 'MovieSelectionActions'], {
                'ok': self.nacisniecieOK,
                'red': self.nacisniecieOK,
                'cancel': self.closeNonRecursive,
                'exit': self.closeRecursive,
                'green': self.showAddonInfo
            })
        self['status'] = Label(_('Please, choose addon to install:'))
        self['key_red'] = Label(_('Download'))
        self['key_green'] = Label(_('Preview'))
        self.state = self.STATE_IDLE
        self.StateTimer = eTimer()
        self.StateTimer.stop()
        self.StateTimer.timeout.get().append(self.uruchomInstalator)
Example #36
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.skinName = "TimerEditList"
		Screen.setTitle(self, _("PowerTimer list"))

		self.onChangedEntry = []
		list = []
		self.list = list
		self.fillTimerList()

		self["timerlist"] = PowerTimerList(list)

		self.key_red_choice = self.EMPTY
		self.key_yellow_choice = self.EMPTY
		self.key_blue_choice = self.EMPTY

		self["key_red"] = Button(" ")
		self["key_green"] = Button(_("Add"))
		self["key_yellow"] = Button(" ")
		self["key_blue"] = Button(" ")

		self["description"] = Label()
		self["ServiceEvent"] = ServiceEvent()

		self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "ShortcutActions", "TimerEditActions"],
			{
				"ok": self.openEdit,
				"cancel": self.leave,
				"green": self.addCurrentTimer,
				"log": self.showLog,
				"left": self.left,
				"right": self.right,
				"up": self.up,
				"down": self.down
			}, -1)
		self.setTitle(_("PowerTimer Overview"))
		self.session.nav.PowerTimer.on_state_change.append(self.onStateChange)
		self.onShown.append(self.updateState)
Example #37
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('EGAMI Full Image Backup'))
     m = checkkernel()
     if m == 1:
         print 'EGAMI Valid'
     else:
         self.close()
     self.list = []
     self['config'] = MenuList(self.list)
     self['key_green'] = Label(_('Full Backup'))
     self['key_red'] = Label(_('Cancel'))
     self['label1'] = Label(_('1. STEP - Choose backup location'))
     self['label2'] = Label(
         _('Here is the list of mounted devices in Your STB\nPlease choose a device where You would like to keep Your backup:'
           ))
     self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {
         'green': self.saveMysets,
         'red': self.close,
         'back': self.close
     })
     self.deviceok = True
     self.updateList()
Example #38
0
    def __init__(self, session, interface=None):
        self.xmlfile = resolveFilename(SCOPE_SKIN,
                                       "userinterfacepositionerwizard.xml")
        WizardLanguage.__init__(self,
                                session,
                                showSteps=False,
                                showStepSlider=False)
        Rc.__init__(self)
        self.skinName = "StartWizard"
        self.session = session
        Screen.setTitle(self, _("Welcome..."))
        self.Console = Console()
        self["wizard"] = Pixmap()
        self["HelpWindow"] = Pixmap()
        self["HelpWindow"].hide()
        self["VKeyIcon"] = Boolean(False)

        self.NextStep = None
        self.Text = None

        self.onClose.append(self.__onClose)
        if self.welcomeWarning not in self.onShow:
            self.onShow.append(self.welcomeWarning)
Example #39
0
    def __init__(self, session, action, value):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("iRadio Player - Main Menu"))

        self.imagedir = '/tmp/onDemandImg/'

        self.action = action
        self.value = value
        osdList = []
        if self.action is "start":
            osdList.append((_("Favorites"), "favourites", "none"))
            osdList.append(
                (_("SHOUTcast Radio"), "shoutcast",
                 "http://api.shoutcast.com/genre/primary?k=%s&f=xml"))
            osdList.append(
                (_("Tunein Radio"), "tunein", "http://opml.radiotime.com/"))
            osdList.append((_("Back"), "exit", "none"))

        self["iRadioMenu"] = MenuList(osdList)
        self["myActionMap"] = ActionMap(["SetupActions"], {
            "ok": self.go,
            "cancel": self.cancel
        }, -1)
Example #40
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		Screen.setTitle(self, _("Flash On the fly (select a image)"))
		self["key_green"] = Button(_("Flash"))
		self["key_red"] = Button(_("Exit"))
		self["key_blue"] = Button("")
		self["key_yellow"] = Button("")
		#self.check_hdd()
		self.filename = None
		self.imagelist = []
		self.simulate = False
		self.imagePath = imagePath
		self["imageList"] = MenuList(self.imagelist)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], 
		{
			"green": self.green,
			"yellow": self.yellow,
			"red": self.quit,
			"blue": self.blue,
			"cancel": self.quit,
		}, -2)
		self.onLayoutFinish.append(self.layoutFinished)
Example #41
0
 def __init__(self, session, args=0):
     self.session = session
     Screen.__init__(self, session)
     Screen.setTitle(self,
                     _('AutoBouquetsMaker') + " - " + _("Select days"))
     self.skinName = ["Setup"]
     self.config = config.autobouquetsmaker
     self.list = []
     days = (_("Monday"), _("Tuesday"), _("Wednesday"), _("Thursday"),
             _("Friday"), _("Saturday"), _("Sunday"))
     for i in sorted(self.config.days.keys()):
         self.list.append(getConfigListEntry(days[i], self.config.days[i]))
     ConfigListScreen.__init__(self, self.list)
     self["key_red"] = StaticText(_("Cancel"))
     self["key_green"] = StaticText(_("Save"))
     self["setupActions"] = ActionMap(
         ["SetupActions", "ColorActions"], {
             "red": self.keyCancel,
             "green": self.keySave,
             "save": self.keySave,
             "cancel": self.keyCancel,
             "ok": self.keySave,
         }, -2)
Example #42
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _("Cron Manager"))
     self.skinName = "Setup"
     self.onChangedEntry = []
     self.list = []
     ConfigListScreen.__init__(self,
                               self.list,
                               session=self.session,
                               on_change=self.changedEntry)
     self['key_red'] = Label(_("Close"))
     self['key_green'] = Label(_("Save"))
     self['actions'] = ActionMap(
         ['WizardActions', 'ColorActions', "MenuActions"], {
             'red': self.close,
             'green': self.checkentry,
             'back': self.close,
             'showVirtualKeyboard': self.KeyText,
         })
     self["HelpWindow"] = Pixmap()
     self["HelpWindow"].hide()
     self["VKeyIcon"] = Boolean(False)
     self.createSetup()
Example #43
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('Mount Manager'))
     self['key_red'] = Label('Initialization')
     self['key_green'] = Label(_('Setup Mounts'))
     self['key_yellow'] = Label(_('Unmount'))
     self['key_blue'] = Label(_('Mount'))
     self['lab1'] = Label()
     self.onChangedEntry = []
     self.list = []
     self['list'] = List(self.list)
     self['list'].onSelectionChanged.append(self.selectionChanged)
     self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'MenuActions'], {'back': self.close,
      'green': self.SetupMounts,
      'red': self.Format,
      'yellow': self.Unmount,
      'blue': self.Mount})
     self.activityTimer = eTimer()
     self.activityTimer.timeout.get().append(self.updateList2)
     if not pathExists('/universe'):
         createDir('/universe')
     self.updateList()
     self.onShown.append(self.setWindowTitle)
Example #44
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _("Cron Manager"))
     self.onChangedEntry = []
     self.list = []
     ConfigListScreen.__init__(self,
                               self.list,
                               session=self.session,
                               on_change=self.changedEntry)
     self['key_red'] = Label(_("Save"))
     self['actions'] = ActionMap(
         [
             'WizardActions', 'ColorActions', 'VirtualKeyboardActions',
             "MenuActions"
         ], {
             'red': self.checkentry,
             'back': self.close,
             'showVirtualKeyboard': self.KeyText,
             "menu": self.closeRecursive
         })
     self["HelpWindow"] = Pixmap()
     self["HelpWindow"].hide()
     self.createSetup()
Example #45
0
	def __init__(self, session, args = None):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("7-LED Display Setup"))
		self.skinName = ["Setup"]
		
		self.onClose.append(self.abort)

		self.onChangedEntry = [ ]
		self.list = []
		ConfigListScreen.__init__(self, self.list, session = self.session, on_change = self.changedEntry)

		self.createSetup()

		self.Console = Console()
		self["key_red"] = Button(_("Cancel"))
		self["key_green"] = Button(_("Save"))

		self["setupActions"] = ActionMap(["SetupActions","ColorActions"],
		{
			"save": self.save,
			"cancel": self.cancel,
			"ok": self.save,
		}, -2)
Example #46
0
	def __init__(self, session, menu_path=""):
		HarddiskSelection.__init__(self, session)
		screentitle = _("Convert ext3 to ext4")
		self.menu_path = menu_path
		if config.usage.show_menupath.value == 'large':
			self.menu_path += screentitle
			title = self.menu_path
			self["menu_path_compressed"] = StaticText("")
			self.menu_path += ' / '
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			condtext = ""
			if self.menu_path and not self.menu_path.endswith(' / '):
				condtext = self.menu_path + " >"
			elif self.menu_path:
				condtext = self.menu_path[:-3] + " >"
			self["menu_path_compressed"] = StaticText(condtext)
			self.menu_path += screentitle + ' / '
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)
		self.skinName = "HarddiskSelection"
Example #47
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _("Samba Log"))
     self.skinName = "NetworkLog"
     self['infotext'] = ScrollLabel('')
     self.Console = Console()
     self['actions'] = ActionMap(
         ['WizardActions', 'ColorActions'], {
             'ok': self.close,
             'back': self.close,
             'up': self['infotext'].pageUp,
             'down': self['infotext'].pageDown
         })
     strview = ''
     self.Console.ePopen('tail /tmp/smb.log > /tmp/tmp.log')
     time.sleep(1)
     if fileExists('/tmp/tmp.log'):
         f = open('/tmp/tmp.log', 'r')
         for line in f.readlines():
             strview += line
         f.close()
         remove('/tmp/tmp.log')
     self['infotext'].setText(strview)
Example #48
0
    def __init__(self, session, menulist):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("Restore Plugins"))
        self.index = 0
        self.list = menulist
        self.container = eConsoleAppContainer()
        self["menu"] = List(list())
        self["menu"].onSelectionChanged.append(self.selectionChanged)
        self["key_green"] = Button(_("Install"))
        self["key_red"] = Button(_("Cancel"))

        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "red": self.exit,
                "green": self.green,
                "cancel": self.exit,
                "ok": self.ok
            }, -2)

        self["menu"].setList(menulist)
        self["menu"].setIndex(self.index)
        self.selectionChanged()
        self.onShown.append(self.setWindowTitle)
Example #49
0
	def __init__(self, session):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("NFS Setup"))
		self.skinName = "NetworkNfs"
		self.onChangedEntry = [ ]
		self['lab1'] = Label(_("Autostart:"))
		self['labactive'] = Label(_(_("Disabled")))
		self['lab2'] = Label(_("Current Status:"))
		self['labstop'] = Label(_("Stopped"))
		self['labrun'] = Label(_("Running"))
		self['key_green'] = Label(_("Start"))
		self['key_red'] = Label(_("Remove Service"))
		self['key_yellow'] = Label(_("Autostart"))
		self['lab4'] = Label(_("active NFS Shares:"))
		self['key_blue'] = Label( (" ") )
		self['lab3'] = Label( (" "))
		self.Console = Console()
		self.my_nfs_active = False
		self.my_nfs_run = False
		self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'ok': self.close, 'back': self.close, 'red': self.UninstallCheck, 'green': self.NfsStartStop, 'yellow': self.Nfsset, 'blue':self.NfsExportOnOff})
		self.service_name = basegroup + '-nfs'
		self.NfsExportCheck()
		self.onLayoutFinish.append(self.InstallCheck)
Example #50
0
	def __init__(self, session, list):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("IPK installer"))
		self.list = SelectionList()
		self["list"] = self.list
		for listindex in range(len(list)):
			if not list[listindex].split("/")[-1].startswith("._"):
				self.list.addSelection(list[listindex].split("/")[-1], list[listindex], listindex, False)

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Install"))
		self["key_yellow"] = StaticText()
		self["key_blue"] = StaticText(_("Invert"))
		self["introduction"] = StaticText(_("Press OK to toggle the selection."))

		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
									{
									"ok": self.list.toggleSelection,
									"cancel": self.close,
									"red": self.close,
									"green": self.install,
									"blue": self.list.toggleAllSelection
									}, -1)
Example #51
0
 def __init__(self, session):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('IPK Installer'))
     self['lab1'] = Label()
     self.defaultDir = '/tmp'
     self.onChangedEntry = []
     self['myactions'] = ActionMap(['ColorActions',
      'OkCancelActions',
      'DirectionActions',
      'MenuActions'], {'cancel': self.close,
      'red': self.close,
      'green': self.keyInstall,
      'yellow': self.changelocation,
      'ok': self.keyInstall,
      'menu': self.close}, -1)
     self['key_red'] = Button(_('Close'))
     self['key_green'] = Button(_('Install'))
     self['key_yellow'] = Button()
     self.list = []
     self['list'] = MenuList(self.list)
     self.populate_List()
     if self.selectionChanged not in self['list'].onSelectionChanged:
         self['list'].onSelectionChanged.append(self.selectionChanged)
Example #52
0
    def loadInfo(self):
        self["blue"].hide()
        self["key_blue"].setText(" ")
        if "download" in self["downloadmenu"].l.getCurrentSelection():
            if self.switch == "skin" or self.switch == "picon":
                self["blue"].show()
                self["key_blue"].setText("Preview")
            self["key_green"].setText("Download")
            self["introduction"].setText("Press OK to install the file.")
            self["description"].setText(
                self["downloadmenu"].l.getCurrentSelection()[3])
            self["description2"].setText("Description: ")
            self["size"].setText(
                self["downloadmenu"].l.getCurrentSelection()[2])
            self["size2"].setText("Size: ")
            Screen.setTitle(self, "Select your Download for " + boxname)
        elif "uninstall" in self["downloadmenu"].l.getCurrentSelection():
            self["key_green"].setText("Remove")
            self["introduction"].setText("Press OK to remove the file.")
            self["description"].setText(" ")
            self["description2"].setText(" ")
            self["size"].setText(" ")
            self["size2"].setText(" ")
            Screen.setTitle(self, "Select your Removal")
        elif "tmpinst" in self["downloadmenu"].l.getCurrentSelection():
            self["key_green"].setText("Install")
            self["introduction"].setText("Press OK to install the file.")
            self["description"].setText(" ")
            self["description2"].setText(" ")
            self["size"].setText(" ")
            self["size2"].setText(" ")
            Screen.setTitle(self, "Select your local file to install")
        elif "cancel" or "none" in self["downloadmenu"].l.getCurrentSelection(
        ):
            self["key_green"].setText("Ok")
            self["introduction"].setText(" ")
            self["description"].setText("Press OK to do nothing")
            self["description2"].setText("Description: ")
            self["size"].setText("0")
            self["size2"].setText("Size: ")
            Screen.setTitle(self, "HDFreaks.cc Downloader")
        else:
            self["description"].setText(" ")
            self["size"].setText(" ")

        Screen.hide(self)
        Screen.show(self)
Example #53
0
    def __init__(self, session, menu_path=""):
        Screen.__init__(self, session)
        self.skinName = "H9SDmanager"
        screentitle = _("H9 SDcard manager")

        self.menu_path = menu_path
        if config.usage.show_menupath.value == 'large':
            self.menu_path += screentitle
            title = self.menu_path
            self["menu_path_compressed"] = StaticText("")
            self.menu_path += ' / '
        elif config.usage.show_menupath.value == 'small':
            title = screentitle
            condtext = ""
            if self.menu_path and not self.menu_path.endswith(' / '):
                condtext = self.menu_path + " >"
            elif self.menu_path:
                condtext = self.menu_path[:-3] + " >"
            self["menu_path_compressed"] = StaticText(condtext)
            self.menu_path += screentitle + ' / '
        else:
            title = screentitle
            self["menu_path_compressed"] = StaticText("")
        Screen.setTitle(self, title)
        self.title = screentitle
        self["labe14"] = StaticText(
            _("Press appropiate Init to move Nand root to SDcard."))
        self["key_red"] = StaticText(_("Reboot"))
        self["key_green"] = StaticText(_("Init SDcard"))
        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "red": self.reboot,
                "green": self.SDInit,
                "ok": boundFunction(self.close, None),
                "cancel": boundFunction(self.close, None),
            }, -1)
        self.onLayoutFinish.append(self.layoutFinished)
Example #54
0
    def __init__(self, session, menu_path=""):
        Screen.__init__(self, session)
        screentitle = _("Language selection")
        if config.usage.show_menupath.value == 'large':
            menu_path += screentitle
            title = menu_path
            self["menu_path_compressed"] = StaticText("")
        elif config.usage.show_menupath.value == 'small':
            title = screentitle
            self["menu_path_compressed"] = StaticText(
                menu_path +
                " >" if not menu_path.endswith(' / ') else menu_path[:-3] +
                " >" or "")
        else:
            title = screentitle
            self["menu_path_compressed"] = StaticText("")
        Screen.setTitle(self, title)

        self.oldActiveLanguage = language.getActiveLanguage()

        self.list = []
        self["summarylangname"] = StaticText()
        self["languages"] = List(self.list)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("Save"))

        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
            }, -1)
Example #55
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.session = session

        self.selection = 0
        self.list = self.list_files("/boot")
        self.MTDKERNEL = getMachineMtdKernel()
        self.MTDROOTFS = getMachineMtdRoot()

        Screen.setTitle(self, _("Flash On the Fly"))
        if SystemInfo["HaveMultiBoot"]:
            self["key_yellow"] = StaticText(_("STARTUP"))
            self.read_current_multiboot()
        else:
            self["key_yellow"] = StaticText("")
        self["key_green"] = StaticText(_("Online"))
        self["key_red"] = StaticText(_("Exit"))
        self["key_blue"] = StaticText(_("Local"))
        self["info-local"] = Label(
            _("Local = Flash an image from local path /hdd/images"))
        self["info-online"] = Label(
            _("Online = Download an image and flash it"))

        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "blue": self.blue,
                "yellow": self.yellow,
                "green": self.green,
                "red": self.quit,
                "cancel": self.quit,
            }, -2)
        if SystemInfo["HaveMultiBoot"]:
            self.multi = self.read_startup("/boot/" +
                                           self.list[self.selection]).split(
                                               ".", 1)[1].split(" ", 1)[0]
            self.multi = self.multi[-1:]
            print "[Flash Online] MULTI:", self.multi
Example #56
0
	def __init__(self, session, *args):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("Software Update"))

		self.sliderPackages = { "dreambox-dvb-modules": 1, "enigma2": 2, "tuxbox-image-info": 3 }

		self.setTitle(_("Software update"))
		
		self.slider = Slider(0, 4)
		self["slider"] = self.slider
		self.activityslider = Slider(0, 100)
		self["activityslider"] = self.activityslider
		self.status = StaticText(_("Please wait..."))
		self["status"] = self.status
		self.package = StaticText(_("Package list update"))
		self["package"] = self.package
		self.oktext = _("Press OK on your remote control to continue.")

		status_msgs = {'stable': _('Feeds status:   Stable'), 'unstable': _('Feeds status:   Unstable'), 'updating': _('Feeds status:   Updating'), 'unknown': _('No connection')}
		self['tl_off'] = Pixmap()
		self['tl_red'] = Pixmap()
		self['tl_yellow'] = Pixmap()
		self['tl_green'] = Pixmap()
		self.feedsStatus()
		self['feedStatusMSG'] = Label(status_msgs[self.trafficLight])
		
		self.channellist_only = 0
		self.channellist_name = ''
		self.SettingsBackupDone = False
		self.ImageBackupDone = False
		self.autobackuprunning = False

		self.packages = 0
		self.error = 0
		self.processed_packages = []
		self.total_packages = None
		self.checkNetworkState()
Example #57
0
	def __init__(self, session, menu_path=""):
		Screen.__init__(self, session)
		screentitle =  _("Mount manager")
		self.menu_path = menu_path
		if config.usage.show_menupath.value == 'large':
			self.menu_path += screentitle
			title = self.menu_path
			self["menu_path_compressed"] = StaticText("")
			self.menu_path += ' / '
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			condtext = ""
			if self.menu_path and not self.menu_path.endswith(' / '):
				condtext = self.menu_path + " >"
			elif self.menu_path:
				condtext = self.menu_path[:-3] + " >"
			self["menu_path_compressed"] = StaticText(condtext)
			self.menu_path += screentitle + ' / '
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)

		self['key_red'] = Label(" ")
		self['key_green'] = Label(_("Setup mounts"))
		self['key_yellow'] = Label(_("Un-mount"))
		self['key_blue'] = Label(_("Mount"))
		self['lab1'] = Label()
		self.onChangedEntry = []
		self.list = []
		self['list'] = List(self.list)
		self["list"].onSelectionChanged.append(self.selectionChanged)
		self['actions'] = ActionMap(['WizardActions', 'ColorActions', "MenuActions"], {'back': self.close, 'green': self.SetupMounts, 'red': self.saveMypoints, 'yellow': self.Unmount, 'blue': self.Mount, "menu": self.close})
		self.Console = Console()
		self.activityTimer = eTimer()
		self.activityTimer.timeout.get().append(self.updateList2)
		self.updateList()
    def __init__(self, session):
        from Components.Sources.StaticText import StaticText
        if (getDesktop(0).size().width() < 800):
            skin = "%s/skins/downloader_sd.xml" % os.path.dirname(
                sys.modules[__name__].__file__)
            self.isHD = 0
        else:
            skin = "%s/skins/downloader_hd.xml" % os.path.dirname(
                sys.modules[__name__].__file__)
            self.isHD = 1
        f = open(skin, "r")
        self.skin = f.read()
        f.close()
        Screen.__init__(self, session)
        self.skinName = "downloader"
        Screen.setTitle(self, _("CrossEPG"))

        self.onChangedEntry = []
        self.sources = []
        self.session = session
        self.mirrors = []

        self["background"] = Pixmap()
        self["action"] = Label(_("Updating rytec providers..."))
        self["summary_action"] = StaticText(_("Updating rytec providers..."))
        self["status"] = Label("")
        self["progress"] = ProgressBar()
        self["progress"].hide()
        self["progress_text"] = Progress()

        self.config = CrossEPG_Config()
        self.config.load()

        self.timer = eTimer()
        self.timer.callback.append(self.start)

        self.onFirstExecBegin.append(self.firstExec)
Example #59
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.session = session
        self.skinName = "Setup"
        Screen.setTitle(self, _("Softcam-Panel Setup") + "...")
        self.setup_title = _("Softcam-Panel Setup") + "..."
        self["HelpWindow"] = Pixmap()
        self["HelpWindow"].hide()
        self["status"] = StaticText()
        self['footnote'] = Label("")
        self["description"] = Label("")
        self["labelExitsave"] = Label("[Exit] = " + _("Cancel") +
                                      "              [Ok] =" + _("Save"))
        CamCheckStop()

        self.onChangedEntry = []
        self.list = []
        ConfigListScreen.__init__(self,
                                  self.list,
                                  session=self.session,
                                  on_change=self.changedEntry)
        self.createSetup()

        self["actions"] = ActionMap(
            ["SetupActions", 'ColorActions'], {
                "ok": self.keySave,
                "cancel": self.keyCancel,
                "red": self.keyCancel,
                "green": self.keySave,
                "menu": self.keyCancel,
            }, -2)

        self["key_red"] = StaticText(_("Cancel"))
        self["key_green"] = StaticText(_("OK"))
        if not self.selectionChanged in self["config"].onSelectionChanged:
            self["config"].onSelectionChanged.append(self.selectionChanged)
        self.selectionChanged()
Example #60
0
	def __init__(self, session, interface = None):
		self.xmlfile = resolveFilename(SCOPE_PLUGINS, "SystemPlugins/NetworkWizard/networkwizard.xml")
		WizardLanguage.__init__(self, session, showSteps = False, showStepSlider = False)
		Rc.__init__(self)
		Screen.setTitle(self, _("NetworkWizard"))
		self.session = session
		self["wizard"] = Pixmap()
		self["HelpWindow"] = Pixmap()
		self["HelpWindow"].hide()
		self["VKeyIcon"] = Boolean(False)

		self.InstalledInterfaceCount = None
		self.Adapterlist = None
		self.InterfaceState = None
		self.isInterfaceUp = None
		self.WlanPluginInstalled = False
		self.ap = None
		self.w = None
		if interface is not None:
			self.selectedInterface = interface
		else:
			self.selectedInterface = None
		self.NextStep = None
		self.resetRef = None
		self.checkRef = None
		self.AdapterRef = None
		self.APList = None
		self.newAPlist = None
		self.oldlist = None

		self.originalInterfaceState = {}
		self.originalInterfaceStateChanged = False
		self.Text = None
		self.rescanTimer = eTimer()
		self.rescanTimer.callback.append(self.rescanTimerFired)
		self.getInstalledInterfaceCount()
		self.isWlanPluginInstalled()