示例#1
0
	def __init__(self, type):
		Converter.__init__(self, type)
		Poll.__init__(self)
		if type == "city":
			self.type = self.city
		elif type == "temp":
			self.type = self.temp
		elif type == "condition":
			self.type = self.condition
		elif type == "windtxt":
			self.type = self.windtxt
		elif type == "windspeed":
			self.type = self.windspeed
		elif type == "humiditytxt":
			self.type = self.humiditytxt
		elif type == "humiditydata":
			self.type = self.humiditydata
		elif type == "picon":
			self.type = self.picon
		elif type.startswith('Format:'):
			self.type = self.format
			self.paramert_str = type 
		else:
			self.type = self.allinfo
		self.iConsole = iConsole()
		self.poll_interval = time_update_ms
		self.poll_enabled = True
示例#2
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle(
         _("Select SoftCam or CardServer: - %s") %
         config.plugins.epanel.activeemu.value)
     self.session = session
     self.iConsole = iConsole()
     self.current_emu = ''
     self.emutype = ''
     self.list = []
     self.indexpos = None
     self["menu"] = List(self.list)
     self.selemulist()
     self["actions"] = ActionMap(
         ["OkCancelActions", "ColorActions"], {
             "cancel": self.cancel,
             "ok": self.ok,
             "green": self.emuStartOperation,
             "red": self.emuStopOperation,
             "yellow": self.emuRestartOperation,
             "blue": self.switcher,
         }, -1)
     self.list = []
     self["key_red"] = Label(_("Stop"))
     self["key_green"] = Label(_("Start"))
     self["key_yellow"] = Label(_("ReStart"))
     self["key_blue"] = Label(_("Switcher"))
     self["text"] = ScrollLabel("")
     self.listecm()
     self.Timer = eTimer()
     self.Timer.callback.append(self.listecm)
     self.Timer.start(1000 * 4, False)
示例#3
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle(_("Download extensions from feed"))
     self.session = session
     self.path = status_path()
     self.iConsole = iConsole()
     if fileExists(self.path[:-6] + 'status'):
         self.iConsole.ePopen(
             "mv %s %s.tmp" %
             (self.path[:-6] + 'status', self.path[:-6] + 'status'))
     self.list = []
     self.status = False
     self["menu"] = List(self.list)
     self["actions"] = ActionMap(
         ["OkCancelActions", "ColorActions"], {
             "cancel": self.cancel,
             "ok": self.download,
             "green": self.download,
             "yellow": self.download_wdeps,
             "red": self.cancel,
         }, -1)
     self["key_red"] = Label(_("Close"))
     self["key_green"] = Label("")
     self["key_yellow"] = Label("")
     self.feedlist()
示例#4
0
 def __init__(self, session, result):
     Screen.__init__(self, session)
     self.skin_path = resolveFilename(SCOPE_PLUGINS,
                                      "Extensions/UpdatePreview")
     self.session = session
     self.skin = SKIN_VIEW
     self.result = result
     self.iConsole = iConsole()
     self.setTitle(_("Please wait"))
     self.count = 0
     self["red_key"] = StaticText(_("Close"))
     self["green_key"] = StaticText(_("Update"))
     self["yellow_key"] = StaticText(_("Restart"))
     self["blue_key"] = StaticText(_("Latest Commits"))
     self["text"] = ScrollLabel("")
     self["actions"] = ActionMap(
         [
             "OkCancelActions", "DirectionActions", "ColorActions",
             "MenuActions"
         ], {
             "cancel": self.close,
             "red": self.close,
             "green": self.update,
             "yellow": self.sysreboot,
             "blue": self.showCommits,
             "menu": self.selectfiles,
             "up": self["text"].pageUp,
             "left": self["text"].pageUp,
             "down": self["text"].pageDown,
             "right": self["text"].pageDown,
         }, -1)
     self.onShow.append(self.preview)
示例#5
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.iConsole = iConsole()
     self.skin = uniswitcher.skin
     self.setTitle(
         _("%s Switcher: - %s") % (config.plugins.usw.emu.value,
                                   config.plugins.usw.activeconf.value))
     self.session = session
     self.indexpos = None
     self.list = []
     self.servinactpng = LoadPixmap(path=resolveFilename(
         SCOPE_PLUGINS, "Extensions/epanel/images/serv.png"))
     self.servactpng = LoadPixmap(path=resolveFilename(
         SCOPE_PLUGINS, "Extensions/epanel/images/servact.png"))
     self["list"] = List(self.list)
     self.mList()
     self["actions"] = ActionMap(
         ["OkCancelActions", "ShortcutActions"], {
             "ok": self.run,
             "red": self.close,
             "green": self.restartsoft,
             "cancel": self.close
         }, -1)
     self["readServ"] = StaticText()
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Restart Softcam"))
     self["text"] = ScrollLabel("")
     self.listecm()
     self.Timer = eTimer()
     self.Timer.callback.append(self.listecm)
     self.Timer.start(1000 * 4, False)
示例#6
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.setTitle(_("SoftCam.Key Updater"))
     self.iConsole = iConsole()
     self.list = []
     self.list.append(
         getConfigListEntry(_("SoftCam.Key server"),
                            config.plugins.epanel.softcamserver))
     self.list.append(
         getConfigListEntry(_("Path to save keyfile"),
                            config.plugins.epanel.path))
     self.list.append(
         getConfigListEntry(_("Name of keyfile"),
                            config.plugins.epanel.keyname))
     ConfigListScreen.__init__(self, self.list)
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Save"))
     self["key_yellow"] = StaticText(_("Download"))
     self["setupActions"] = ActionMap(
         ["SetupActions", "ColorActions", "EPGSelectActions"], {
             "red": self.cancel,
             "cancel": self.cancel,
             "green": self.save,
             "yellow": self.CreateOldKeyFile,
             "ok": self.save
         }, -2)
示例#7
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setTitle(_("Select SoftCam or CardServer: - %s") % config.plugins.epanel.activeemu.value)
		self.session = session
		self.iConsole = iConsole()
		self.current_emu = ''
		self.emutype = ''
		self.list = []
		self.indexpos = None
		self["menu"] = List(self.list)
		self.selemulist()
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
			{
				"cancel": self.cancel,
				"ok": self.ok,
				"green": self.emuStartOperation,
				"red": self.emuStopOperation,
				"yellow": self.emuRestartOperation,
				"blue": self.switcher,
			},-1)
		self.list = [ ]
		self["key_red"] = Label(_("Stop"))
		self["key_green"] = Label(_("Start"))
		self["key_yellow"] = Label(_("ReStart"))
		self["key_blue"] = Label(_("Switcher"))
		self["text"] = ScrollLabel("")
		self.listecm()
		self.Timer = eTimer()
		self.Timer.callback.append(self.listecm)
		self.Timer.start(1000*4, False)
示例#8
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.setTitle(_("E-Panel"))
     self.iConsole = iConsole()
     self.indexpos = None
     self.iConsole.ePopen("opkg update")
     self["shortcuts"] = ActionMap(
         ["ShortcutActions", "WizardActions", "EPGSelectActions"], {
             "ok": self.keyOK,
             "cancel": self.exit,
             "back": self.exit,
             "red": self.exit,
             "info": self.infoKey,
             "green": self.keyGreen,
             "yellow": self.keyYellow,
             "blue": self.keyBlue,
         })
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Softcam"))
     self["key_yellow"] = StaticText(_("Tools"))
     self["key_blue"] = StaticText(_("Install"))
     self.list = []
     self["menu"] = List(self.list)
     self.mList()
示例#9
0
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.list = []
		ConfigListScreen.__init__(self, self.list)
		self.iConsole = iConsole()
		self['key_red'] = StaticText(_('Close'))
		self['key_green'] = StaticText(_('Save'))
		self['key_yellow'] = StaticText(_('Liberar'))
		self['memTotal'] = StaticText()
		self['bufCache'] = StaticText()
		self['MemoryLabel'] = StaticText(_('Memory:'))
		self['setupActions'] = ActionMap(['SetupActions', 'OkCancelActions', 'ColorActions', 'DirectionActions'],
		{
			'red': self.cancel,
			'cancel': self.cancel,
			'green': self.save_values,
			'yellow': self.ClearNow,
			'ok': self.save_values
		}, -2)
		if config.plugins.ldteam.dropmode:
			try:
				self.list.append(getConfigListEntry(_('Select free memory mode'), config.plugins.ldteam.dropmode))
			except:
				pass
		self.onShow.append(self.Title)
示例#10
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.iConsole = iConsole()
		self.skin = uniswitcher.skin
		self.setTitle(_("%s Switcher: - %s") % (config.plugins.usw.emu.value, config.plugins.usw.activeconf.value))
		self.session = session
		self.indexpos = None
		self.list = []
		self.servinactpng = LoadPixmap(path=resolveFilename(SCOPE_PLUGINS, "Extensions/epanel/images/serv.png"))
		self.servactpng = LoadPixmap(path=resolveFilename(SCOPE_PLUGINS, "Extensions/epanel/images/servact.png"))
		self["list"] = List(self.list)
		self.mList()
		self["actions"] = ActionMap(["OkCancelActions", "ShortcutActions"],
		{	
			"ok": self.run,
			"red": self.close,
			"green": self.restartsoft,
			"cancel": self.close
		}, -1)
		self["readServ"] = StaticText()
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Restart Softcam"))
		self["text"] = ScrollLabel("")
		self.listecm()
		self.Timer = eTimer()
		self.Timer.callback.append(self.listecm)
		self.Timer.start(1000*4, False)
示例#11
0
文件: plugin.py 项目: trunca/123
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.setTitle(_("Utilidades SFT"))
     self.iConsole = iConsole()
     self.indexpos = None
     self["shortcuts"] = NumberActionMap(
         [
             "ShortcutActions", "WizardActions", "EPGSelectActions",
             "NumberActions"
         ], {
             "ok": self.keyOK,
             "cancel": self.exit,
             "back": self.exit,
             "red": self.exit,
             "green": self.keyGreen,
             "yellow": self.keyYellow,
             "blue": self.keyBlue,
             "1": self.go,
             "2": self.go,
             "3": self.go,
             "4": self.go,
             "5": self.go,
             "6": self.go,
             "7": self.go,
         })
     self["key_green"] = StaticText(_("Informacion"))
     self["key_yellow"] = StaticText(_("Utilidades"))
     self["key_blue"] = StaticText(_("Instalar"))
     self["key_red"] = StaticText(_("Cerrar"))
     self.list = []
     self["menu"] = List(self.list)
     self.mList()
示例#12
0
 def __init__(self, type):
     Converter.__init__(self, type)
     Poll.__init__(self)
     if type == "city":
         self.type = self.city
     elif type == "temp":
         self.type = self.temp
     elif type == "condition":
         self.type = self.condition
     elif type == "windtxt":
         self.type = self.windtxt
     elif type == "windspeed":
         self.type = self.windspeed
     elif type == "humiditytxt":
         self.type = self.humiditytxt
     elif type == "humiditydata":
         self.type = self.humiditydata
     elif type == "picon":
         self.type = self.picon
     elif type.startswith('Format:'):
         self.type = self.format
         self.paramert_str = type
     else:
         self.type = self.allinfo
     self.iConsole = iConsole()
     self.poll_interval = time_update_ms
     self.poll_enabled = True
示例#13
0
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.setTitle(_("E-Panel"))
		self.iConsole = iConsole()
		self.indexpos = None
		self.iConsole.ePopen("opkg update")
		self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions", "EPGSelectActions"],
		{
			"ok": self.keyOK,
			"cancel": self.exit,
			"back": self.exit,
			"red": self.exit,
			"info": self.infoKey,
			"green": self.keyGreen,
			"yellow": self.keyYellow,
			"blue": self.keyBlue,
			
		})
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Softcam"))
		self["key_yellow"] = StaticText(_("Tools"))
		self["key_blue"] = StaticText(_("Install"))
		self.list = []
		self["menu"] = List(self.list)
		self.mList()
示例#14
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_INFO
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Updating list of available packages")
     self.iConsole.ePopen("opkg update", self.preview_list)
示例#15
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.skin_path = resolveFilename(SCOPE_PLUGINS, "Extensions/RPUlite")
     self.iConsole = iConsole()
     self.keyext = config.plugins.rpulite.menuext.value
     self.newproxy = ''
     self.path = cronpath()
     self.update_system()
     self.list = []
     self.list.append(
         getConfigListEntry(_("Select source"),
                            config.plugins.rpulite.source))
     self.list.append(
         getConfigListEntry(_("Input new proxy ip"),
                            config.plugins.rpulite.ip))
     self.list.append(
         getConfigListEntry(_("Select service type in default bouquet"),
                            config.plugins.rpulite.servicetype))
     self.list.append(
         getConfigListEntry(_("Input Name of default bouquet"),
                            config.plugins.rpulite.bname))
     self.list.append(
         getConfigListEntry(_("Input password (if needed)"),
                            config.plugins.rpulite.rpassw))
     self.list.append(
         getConfigListEntry(_("Reference in default bouquet"),
                            config.plugins.rpulite.ref))
     self.list.append(
         getConfigListEntry(_("Set time to update ip (cron needed)"),
                            config.plugins.rpulite.timeup))
     if os.path.isdir('/etc/rcS.d') or os.path.isdir(
             '/etc/rc.d/rcS.d'):  #/etc/rc.d/rcS.d/
         self.list.append(
             getConfigListEntry(_("Update ip on startup"),
                                config.plugins.rpulite.startup))
     self.list.append(
         getConfigListEntry(_("Proxy updater in ExtensionMenu"),
                            config.plugins.rpulite.menuext))
     ConfigListScreen.__init__(self, self.list)
     #ConfigListScreen.__init__(self, self.list, session=session)
     self["text"] = ScrollLabel("")
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Save"))
     self["key_yellow"] = StaticText(_("IP & Ch.List Update"))
     self["key_blue"] = StaticText(_("IP Update"))
     self["setupActions"] = ActionMap(
         ["SetupActions", "ColorActions"], {
             "red": self.cancel,
             "cancel": self.cancel,
             "green": self.save,
             "yellow": self.update_all,
             "blue": self.update_ip,
             "ok": self.ok_key,
         }, -2)
     self.onShow.append(self.listuserbouquet)
示例#16
0
	def __init__(self, session, emutype):
		Screen.__init__(self, session)
		self.session = session
		self.skin = SKIN_DWN
		self.emutype = emutype
		self.setTitle(_("Please wait"))
		self["status"] = StaticText()
		self.iConsole = iConsole()
		self["status"].text = _("Restarting...")
		self.iConsole.ePopen("/etc/init.d/%s restart" % self.emutype, self.sleep_time)
示例#17
0
文件: plugin.py 项目: trunca/123
 def gotSession(self, session):
     self.session = session
     self.iConsole = iConsole()
     if config.plugins.sftpanel.epgupdate.value:
         self.timer = enigma.eTimer()
         self.timermin = enigma.eTimer()
         self.timermin.callback.append(self.check_change_min)
         self.timer.callback.append(self.check_change)
         self.timermin.startLongTimer(30)
         self.timer.startLongTimer(60)
示例#18
0
	def __init__(self, session, emutype):
		Screen.__init__(self, session)
		self.session = session
		self.skin = SKIN_DWN
		self.emutype = emutype
		self.setTitle(_("Please wait"))
		self["status"] = StaticText()
		self.iConsole = iConsole()
		self["status"].text = _("Stoping...")
		self.iConsole.ePopen("/etc/init.d/%s stop" % self.emutype, self.emuRemoveScriptStop)
示例#19
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.skinName = "koalaInfopanel"
     self.setTitle(_("Koala Info Panel"))
     self.iConsole = iConsole()
     self["shortcuts"] = ActionMap(
         ["ShortcutActions", "WizardActions", "NumberActions"], {
             "cancel": self.cancel,
             "back": self.cancel,
             "red": self.cancel,
             "blue": self.koalaippublica,
             "yellow": self.koalalibmemoria,
             "green": self.koalaresetpass,
             "1": self.koalasatelite,
             "2": self.koalaiptv,
             "3": self.serviceapptest,
             "ok": self.cancel,
         })
     self["homeinfo"] = StaticText(_("Koala Isettings- Panel Info"))
     self["publicidad"] = StaticText(_("Soporte by jungle-team.com"))
     self["key_red"] = StaticText(_("Cerrar"))
     self["key_blue"] = StaticText(_("IP Publica"))
     self["key_yellow"] = StaticText(_("Liberar Memoria"))
     self["key_green"] = StaticText(_("Resetear Password"))
     self["MemoryLabel"] = StaticText(_("Memoria:"))
     self["SwapLabel"] = StaticText(_("Swap:"))
     self["FlashLabel"] = StaticText(_("Flash:"))
     self["memTotal"] = StaticText()
     self["swapTotal"] = StaticText()
     self["flashTotal"] = StaticText()
     self["device"] = StaticText()
     self["Hardware"] = StaticText()
     self["Image"] = StaticText()
     self["CPULabel"] = StaticText(_("Procesador:"))
     self["CPU"] = StaticText()
     self["Kernel"] = StaticText()
     self["nim"] = StaticText()
     self["ipLabel"] = StaticText(_("Interna IP:"))
     self["ipInfo"] = StaticText()
     self["macLabel"] = StaticText(_("MAC (lan/wlan):"))
     self["macInfo"] = StaticText()
     self["EnigmaVersion"] = StaticText()
     self["HardwareLabel"] = StaticText(_("Hardware:"))
     self["ImageLabel"] = StaticText(_("Imagen:"))
     self["KernelLabel"] = StaticText(_("Kernel Version:"))
     self["EnigmaVersionLabel"] = StaticText(_("Last Upgrade:"))
     self["driver"] = StaticText()
     self["driverLabel"] = StaticText(_("Driver Version:"))
     self.memInfo()
     self.FlashMem()
     self.devices()
     self.mainInfo()
     self.cpuinfo()
     self.network_info()
示例#20
0
	def __init__(self, session, args=None):
		Screen.__init__(self, session)
		self.session = session
		self.skin = SKIN_DWN
		self.setTitle(_("Please wait"))
		self["status"] = StaticText()
		self.iConsole = iConsole()
		self["status"].text = _("Reload servicelist")
		if config.plugins.m2b.passw.value is not '':
			config.plugins.m2b.passw.value = ':' + config.plugins.m2b.passw.value
		self.iConsole.ePopen('wget -q -O - http://root%[email protected]/web/servicelistreload?mode=0 && sleep 2' % config.plugins.m2b.passw.value, self.quit)
示例#21
0
文件: emuman.py 项目: wslee2/enigma2
 def __init__(self, session, emutype):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.emutype = emutype
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Restarting...")
     self.iConsole.ePopen("/etc/init.d/%s restart" % self.emutype,
                          self.sleep_time)
示例#22
0
文件: emuman.py 项目: wslee2/enigma2
 def __init__(self, session, emutype):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.emutype = emutype
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Stoping...")
     self.iConsole.ePopen("/etc/init.d/%s stop" % self.emutype,
                          self.emuRemoveScriptStop)
示例#23
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.newproxy = ''
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Donwloading ip & channel list")
     self.iConsole.ePopen(
         "wget -q 'http://www.satorbita.com/iptv/free/1triolan.php?list.m3u' -O /tmp/triolan.m3u",
         self.get_ip2)
示例#24
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.newproxy = ''
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Reload servicelist")
     self.iConsole.ePopen(
         'wget -q -O - http://root:%[email protected]/web/servicelistreload?mode=0 && sleep 2'
         % config.plugins.arbouquet.passw.value, self.cancel)
示例#25
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.newproxy = ''
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Donwloading ip & channel list")
     if os.path.isfile('/tmp/triolan.m3u'):
         os.remove('/tmp/triolan.m3u')
     self.iConsole.ePopen(
         "wget -q 'http://triolan.tv/getPlaylist.ashx' -O /tmp/triolan.m3u",
         self.user_upg2)
示例#26
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     self.newproxy = ''
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Donwloading ip & channel list")
     if config.plugins.rpulite.source.value == '0':
         self.iConsole.ePopen(
             "wget -q 'http://plstonline.org/iptv/IPTV_29_V.m3u?' -O /tmp/rostelecom.m3u && sleep 4",
             self.get_ip2)
     else:
         self.iConsole.ePopen(
             "wget -q 'http://iptv.lamp.ufa-it.ru/generate_m3u.php?num_list=001&shift=2&type=m3u' -O /tmp/rostelecom.m3u && sleep 4",
             self.get_ip2)
示例#27
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.setTitle(_("E-Panel"))
     self.iConsole = iConsole()
     self["shortcuts"] = ActionMap(
         ["ShortcutActions", "WizardActions"], {
             "cancel": self.cancel,
             "back": self.cancel,
             "red": self.cancel,
             "ok": self.cancel,
         })
     self["key_red"] = StaticText(_("Close"))
     self["MemoryLabel"] = StaticText(_("Memory:"))
     self["SwapLabel"] = StaticText(_("Swap:"))
     self["FlashLabel"] = StaticText(_("Flash:"))
     self["memTotal"] = StaticText()
     self["swapTotal"] = StaticText()
     self["flashTotal"] = StaticText()
     self["device"] = StaticText()
     self["deviceLabel"] = StaticText(_("Devices:"))
     self["Hardware"] = StaticText()
     self["Image"] = StaticText()
     self["Kernel"] = StaticText()
     self["nim"] = StaticText()
     self["nimLabel"] = StaticText(_("Detected NIMs:"))
     self["EnigmaVersion"] = StaticText()
     self["HardwareLabel"] = StaticText(_("Hardware:"))
     self["ImageLabel"] = StaticText(_("Image:"))
     self["KernelLabel"] = StaticText(_("Kernel Version:"))
     self["EnigmaVersionLabel"] = StaticText(_("Last Upgrade:"))
     self["driver"] = StaticText()
     self["driverLabel"] = StaticText(_("Driver Version:"))
     self["plipanel"] = StaticText(_("E-Panel Ver:"))
     self["panelver"] = StaticText()
     self["softcamLabel"] = StaticText(_("Softcam:"))
     self["softcam"] = StaticText()
     self["cardserverLabel"] = StaticText(_("Cardserver:"))
     self["cardserver"] = StaticText()
     self.memInfo()
     self.FlashMem()
     self.devices()
     self.mainInfo()
     self.verinfo()
     self.emuname()
示例#28
0
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.setTitle(_("E-Panel"))
		self.iConsole = iConsole()
		self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions"],
		{
			"cancel": self.cancel,
			"back": self.cancel,
			"red": self.cancel,
			"ok": self.cancel,
			})
		self["key_red"] = StaticText(_("Close"))
		self["MemoryLabel"] = StaticText(_("Memory:"))
		self["SwapLabel"] = StaticText(_("Swap:"))
		self["FlashLabel"] = StaticText(_("Flash:"))
		self["memTotal"] = StaticText()
		self["swapTotal"] = StaticText()
		self["flashTotal"] = StaticText()
		self["device"] = StaticText()
		self["deviceLabel"] = StaticText(_("Devices:"))
		self["Hardware"] = StaticText()
		self["Image"] = StaticText()
		self["Kernel"] = StaticText()
		self["nim"] = StaticText()
		self["nimLabel"] = StaticText(_("Detected NIMs:"))
		self["EnigmaVersion"] = StaticText()
		self["HardwareLabel"] = StaticText(_("Hardware:"))
		self["ImageLabel"] = StaticText(_("Image:"))
		self["KernelLabel"] = StaticText(_("Kernel Version:"))
		self["EnigmaVersionLabel"] = StaticText(_("Last Upgrade:"))
		self["driver"] = StaticText()
		self["driverLabel"] = StaticText(_("Driver Version:"))
		self["plipanel"] = StaticText(_("E-Panel Ver:"))
		self["panelver"] = StaticText()
		self["softcamLabel"] = StaticText(_("Softcam:"))
		self["softcam"] = StaticText()
		self["cardserverLabel"] = StaticText(_("Cardserver:"))
		self["cardserver"] = StaticText()
		self.memInfo()
		self.FlashMem()
		self.devices()
		self.mainInfo()
		self.verinfo()
		self.emuname()
	def __init__(self, session, args=None):
		Screen.__init__(self, session)
		self.setTitle(_("Insatall extensions from feed"))
		self.session = session
		self.path = status_path()
		self.iConsole = iConsole()
		self.list = []
		self["menu"] = List(self.list)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
			{
				"cancel": self.cancel,
				"ok": self.setup,
				"green": self.setup,
				"red": self.cancel,
			},-1)
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText("")
		self.feedlist()
示例#30
0
 def __init__(self, session, args=None):
     Screen.__init__(self, session)
     self.session = session
     self.skin = SKIN_DWN
     password = ''
     self.setTitle(_("Please wait"))
     self["status"] = StaticText()
     self.iConsole = iConsole()
     self["status"].text = _("Reload ServiceList")
     if os.path.isfile('%sExtensions/ReloadSL/password' %
                       resolveFilename(SCOPE_PLUGINS)):
         password = open(
             '%sExtensions/ReloadSL/password' %
             resolveFilename(SCOPE_PLUGINS)).read().strip().rstrip(
                 '\r').rstrip('\n')
     self.iConsole.ePopen(
         'wget -q -O - http://root:%[email protected]/web/servicelistreload?mode=0 && sleep 2'
         % password, self.cancel)
示例#31
0
文件: LdSet.py 项目: OpenLD/enigma2
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.list = []
		self.iConsole = iConsole()
		self['key_red'] = StaticText(_('Close'))
		self['key_green'] = StaticText(_('Save'))
		self['key_yellow'] = StaticText(_('Liberar'))
		self['memTotal'] = StaticText()
		self['bufCache'] = StaticText()
		self['MemoryLabel'] = StaticText(_('Memory:'))
		self['setupActions'] = ActionMap(['SetupActions', 'OkCancelActions', 'ColorActions', 'DirectionActions'], {'red': self.cancel,
		 'cancel': self.cancel,
		 'green': self.save_values,
		 'yellow': self.ClearNow,
		 'ok': self.save_values}, -2)
		self.list.append(getConfigListEntry(_('Select free memory mode'), config.plugins.LDteam.dropmode))
		ConfigListScreen.__init__(self, self.list)
		self.onShow.append(self.Title)
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.setTitle(_("IPK Tools"))
		self.iConsole = iConsole()
		self.indexpos = None
		self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions"],
		{
			"ok": self.OK,
			"cancel": self.exit,
			"back": self.exit,
			"red": self.exit,
			"green": self.clear,
		})
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Clear /tmp"))
		self.list = []
		self["menu"] = List(self.list)
		self.mList()
示例#33
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.skin_path = resolveFilename(SCOPE_PLUGINS, "Extensions/ipktools")
     self.setTitle(_("2boom's IPK tools"))
     self.iConsole = iConsole()
     self.indexpos = None
     self["shortcuts"] = ActionMap(
         ["ShortcutActions", "WizardActions"], {
             "ok": self.OK,
             "cancel": self.exit,
             "back": self.exit,
             "red": self.exit,
             "green": self.clear,
         })
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Clear /tmp"))
     self.list = []
     self["menu"] = List(self.list)
     self.mList()
示例#34
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.skin_path = resolveFilename(SCOPE_PLUGINS, "Extensions/ARbouquet")
     self.iConsole = iConsole()
     self.session = session
     self.list = []
     self.indexpos = None
     self.item_name = ''
     self["menu"] = List(self.list)
     self["actions"] = ActionMap(
         ["OkCancelActions", "ColorActions"], {
             "cancel": self.reload_bq,
             "red": self.reload_bq,
             "green": self.make_bq,
             "yellow": self.remove_bq,
         }, -1)
     self["key_red"] = StaticText(_("Close"))
     self["key_green"] = StaticText(_("Add"))
     self["key_yellow"] = StaticText(_("Remove"))
     self.bq_list()
     self.onLayoutFinish.append(self.make_title)
示例#35
0
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.setTitle(_("SoftCam.Key Updater"))
		self.iConsole = iConsole()
		self.list = []
		self.list.append(getConfigListEntry(_("SoftCam.Key server"), config.plugins.epanel.softcamserver))
		self.list.append(getConfigListEntry(_("Path to save keyfile"), config.plugins.epanel.path))
		self.list.append(getConfigListEntry(_("Name of keyfile"), config.plugins.epanel.keyname))
		ConfigListScreen.__init__(self, self.list)
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Save"))
		self["key_yellow"] = StaticText(_("Download"))
		self["setupActions"] = ActionMap(["SetupActions", "ColorActions", "EPGSelectActions"],
		{
			"red": self.cancel,
			"cancel": self.cancel,
			"green": self.save,
			"yellow": self.CreateOldKeyFile,
			"ok": self.save
		}, -2)
	def __init__(self, session, args=None):
		Screen.__init__(self, session)
		self.setTitle(_("Ipk remove"))
		self.session = session
		self.path = status_path()
		self.iConsole = iConsole()
		self.status = False
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("UnInstall"))
		self["key_yellow"] = StaticText(_("Adv. UnInstall"))
		self.list = []
		self["menu"] = List(self.list)
		self.nList()
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
			{
				"cancel": self.cancel,
				"ok": self.remove_ipk,
				"green": self.remove_ipk,
				"red": self.cancel,
				"yellow": self.adv_remove,
			},-1)
示例#37
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.setTitle(_("Download extensions from feed"))
		self.session = session
		self.path = status_path()
		self.iConsole = iConsole()
		if fileExists(self.path[:-6] + 'status'):
			self.iConsole.ePopen("mv %s %s.tmp" %(self.path[:-6] + 'status', self.path[:-6] + 'status'))
		self.list = []
		self["menu"] = List(self.list)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
			{
				"cancel": self.cancel,
				"ok": self.download,
				"green": self.download,
				"yellow": self.download_wdeps,
				"red": self.cancel,
			},-1)
		self["key_red"] = Label(_("Close"))
		self["key_green"] = Label("")
		self["key_yellow"] = Label("")
		self.feedlist()
示例#38
0
	def __init__(self, session):
		self.session = session
		Screen.__init__(self, session)
		self.list = []
		self.iConsole = iConsole()
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Save"))
		self["key_yellow"] = StaticText(_("Liberar"))
		self["memTotal"] = StaticText()
		self["bufCache"] = StaticText()
		self["MemoryLabel"] = StaticText(_("Memory:"))
		self["setupActions"] = ActionMap(["SetupActions", "ColorActions", "EPGSelectActions"],
		{
			"red": self.cancel,
			"cancel": self.cancel,
			"green": self.save_values,
			"yellow": self.ClearNow,
			"ok": self.save_values
		}, -2)
		self.list.append(getConfigListEntry(_("Select free memory mode"), config.plugins.LDteam.dropmode))
		ConfigListScreen.__init__(self, self.list)
		self.onShow.append(self.Title)
示例#39
0
 def __init__(self, session):
     self.session = session
     Screen.__init__(self, session)
     self.setTitle(_('MX Sline Skin Setup'))
     self.iConsole = iConsole()
     self.list = []
     self.list.append(
         getConfigListEntry(_('Select MX Sline team'),
                            config.plugins.MXSline.style))
     ConfigListScreen.__init__(self, self.list)
     self['CSPreview'] = Pixmap()
     self['red_key'] = StaticText(_('Close'))
     self['green_key'] = StaticText(_('Save'))
     self['yellow_key'] = StaticText(_('Restart GUI'))
     self['setupActions'] = ActionMap(
         ['SetupActions', 'ColorActions'], {
             'red': self.cancel,
             'cancel': self.cancel,
             'green': self.save,
             'yellow': self.restart,
             'ok': self.save
         }, -2)
     self.onLayoutFinish.append(self.CSPreview)
示例#40
0
 def __init__(self, session, country):
     self.skin_path = resolveFilename(SCOPE_PLUGINS,
                                      "Extensions/RaedQuickSignal")
     self.skin = SKIN_WeatherLocation
     self.session = session
     self.country = country
     list = []
     Screen.__init__(self, session)
     self.title = _(country)
     self["choicelist"] = MenuList(list)
     self["key_red"] = Label(_("Cancel"))
     self["key_green"] = Label(_("Add city"))
     self["myActionMap"] = ActionMap(
         ["SetupActions", "ColorActions"], {
             "ok": self.keyOk,
             "green": self.add_city,
             "cancel": self.keyCancel,
             "red": self.keyCancel,
         }, -1)
     self.iConsole = iConsole()
     self.timer = eTimer()
     self.timer.callback.append(self.createChoiceList)
     self.timer.start(5, False)
示例#41
0
	def gotSession(self, session):
		self.session = session
		self.iConsole = iConsole()
		self.timer = enigma.eTimer() 
		self.timer.callback.append(self.update)
		self.timer.start(60000, True)
	def __init__(self, type):
		Converter.__init__(self, type)
		Poll.__init__(self)
		if type == "Vfd":
			self.type = self.VFD
		elif type == "Date":
			self.type = self.DATE
		elif type == "Shortdate":
			self.type = self.SHORTDATE
		elif type == "Day":
			self.type = self.DAY
		elif type == "Shortday":
			self.type = self.SHORTDAY
		elif type == "Location":
			self.type = self.LOCATION
		elif type == "Timezone":
			self.type = self.TIMEZONE
		elif type == "Latitude":
			self.type = self.LATITUDE
		elif type == "Longitude":
			self.type = self.LONGITUDE
		elif type == "Temp":
			self.type = self.TEMP
		elif type == "Picon":
			self.type = self.PICON
		elif type == "Skytext":
			self.type = self.SKYTEXT
		elif type == "Feelslike":
			self.type = self.FEELSLIKE
		elif type == "Humidity":
			self.type = self.HUMIDITY
		elif type == "Wind":
			self.type = self.WIND
		elif type == "Windspeed":
			self.type = self.WINDSPEED
#	today	#
		elif type == "Date0":
			self.type = self.DATE0
		elif type == "Shortdate0":
			self.type = self.SHORTDATE0
		elif type == "Day0":
			self.type = self.DAY0
		elif type == "Shortday0":
			self.type = self.SHORTDAY0
		elif type == "Temp0":
			self.type = self.TEMP0
		elif type == "Lowtemp0":
			self.type = self.LOWTEMP0
		elif type == "Hightemp0":
			self.type = self.HIGHTEMP0
		elif type == "Picon0":
			self.type = self.PICON0
		elif type == "Skytext0":
			self.type = self.SKYTEXT0
		elif type == "Precip0":
			self.type = self.PRECIP0
#	day 1	#
		elif type == "Date1":
			self.type = self.DATE1
		elif type == "Shortdate1":
			self.type = self.SHORTDATE1
		elif type == "Day1":
			self.type = self.DAY1
		elif type == "Shortday1":
			self.type = self.SHORTDAY1
		elif type == "Temp1":
			self.type = self.TEMP1
		elif type == "Lowtemp1":
			self.type = self.LOWTEMP1
		elif type == "Hightemp1":
			self.type = self.HIGHTEMP1
		elif type == "Picon1":
			self.type = self.PICON1
		elif type == "Skytext1":
			self.type = self.SKYTEXT1
		elif type == "Precip1":
			self.type = self.PRECIP1
#	day 2	#
		elif type == "Date2":
			self.type = self.DATE2
		elif type == "Shortdate2":
			self.type = self.SHORTDATE2
		elif type == "Day2":
			self.type = self.DAY2
		elif type == "Shortday2":
			self.type = self.SHORTDAY2
		elif type == "Temp2":
			self.type = self.TEMP2
		elif type == "Lowtemp2":
			self.type = self.LOWTEMP2
		elif type == "Hightemp2":
			self.type = self.HIGHTEMP2
		elif type == "Picon2":
			self.type = self.PICON2
		elif type == "Skytext2":
			self.type = self.SKYTEXT2
		elif type == "Precip2":
			self.type = self.PRECIP2
#	day 3	#
		elif type == "Date3":
			self.type = self.DATE3
		elif type == "Shortdate3":
			self.type = self.SHORTDATE3
		elif type == "Day3":
			self.type = self.DAY3
		elif type == "Shortday3":
			self.type = self.SHORTDAY3
		elif type == "Temp3":
			self.type = self.TEMP3
		elif type == "Lowtemp3":
			self.type = self.LOWTEMP3
		elif type == "Hightemp3":
			self.type = self.HIGHTEMP3
		elif type == "Picon3":
			self.type = self.PICON3
		elif type == "Skytext3":
			self.type = self.SKYTEXT3
		elif type == "Precip3":
			self.type = self.PRECIP3
#	day 4	#
		elif type == "Date4":
			self.type = self.DATE4
		elif type == "Shortdate4":
			self.type = self.SHORTDATE4
		elif type == "Day4":
			self.type = self.DAY4
		elif type == "Shortday4":
			self.type = self.SHORTDAY4
		elif type == "Temp4":
			self.type = self.TEMP4
		elif type == "Lowtemp4":
			self.type = self.LOWTEMP4
		elif type == "Hightemp4":
			self.type = self.HIGHTEMP4
		elif type == "Picon4":
			self.type = self.PICON4
		elif type == "Skytext4":
			self.type = self.SKYTEXT4
		elif type == "Precip4":
			self.type = self.PRECIP4

		self.iConsole = iConsole()
		self.poll_interval = time_update_ms
		self.poll_enabled = True
示例#43
0
	def __init__(self, type):
		Converter.__init__(self, type)
		Poll.__init__(self)

		if type == "direction":
			self.type = self.direction
		elif type == "speed":
			self.type = self.speed
		elif type == "humidity":
			self.type = self.humidity
		elif type == "feels":
			self.type = self.feels
		elif type == "text":
			self.type = self.wtext
		elif type == "temp":
			self.type = self.temp
		elif type == "picon":
			self.type = self.picon
		elif type == "fweekday0":
			self.type = self.fweekday0
		elif type == "fweekday1":
			self.type = self.fweekday1
		elif type == "fweekday2":
			self.type = self.fweekday2
		elif type == "fweekday3":
			self.type = self.fweekday3
		elif type == "fweekday4":
			self.type = self.fweekday4
		elif type == "ftemp_high0":
			self.type = self.ftemp_high0
		elif type == "ftemp_low0":
			self.type = self.ftemp_low0
		elif type == "ftemp_high1":
			self.type = self.ftemp_high1
		elif type == "ftemp_low1":
			self.type = self.ftemp_low1
		elif type == "ftemp_high2":
			self.type = self.ftemp_high2
		elif type == "ftemp_low2":
			self.type = self.ftemp_low2
		elif type == "ftemp_high3":
			self.type = self.ftemp_high3
		elif type == "ftemp_low3":
			self.type = self.ftemp_low3
		elif type == "ftemp_high4":
			self.type = self.ftemp_high4
		elif type == "ftemp_low4":
			self.type = self.ftemp_low4
		elif type == "ftext0":
			self.type = self.ftext0
		elif type == "ftext1":
			self.type = self.ftext1
		elif type == "ftext2":
			self.type = self.ftext2
		elif type == "ftext3":
			self.type = self.ftext3
		elif type == "ftext4":
			self.type = self.ftext4
		elif type == "fpicon0":
			self.type = self.fpicon0
		elif type == "fpicon1":
			self.type = self.fpicon1
		elif type == "fpicon2":
			self.type = self.fpicon2
		elif type == "fpicon3":
			self.type = self.fpicon3
		elif type == "fpicon4":
			self.type = self.fpicon4
		elif type == "cityid":
			self.type = self.cityid
		self.iConsole = iConsole()
		self.poll_interval = time_update_ms
		self.poll_enabled = True
示例#44
0
	def __init__(self, type):
		Converter.__init__(self, type)
		Poll.__init__(self)
		if type == "city":
			self.type = self.city
		elif type == "city_title":
			self.type = self.city_title
		elif type == "country":
			self.type = self.country
		elif type == "direction":
			self.type = self.direction
		elif type == "speed":
			self.type = self.speed
		elif type == "speed_ms":
			self.type = self.speed_ms
		elif type == "humidity":
			self.type = self.humidity
		elif type == "feels":
			self.type = self.feels
		elif type == "visibility":
			self.type = self.visibility
		elif type == "pressure":
			self.type = self.pressure
		elif type == "pressurenm":
			self.type = self.pressurenm
		elif type == "text":
			self.type = self.wtext
		elif type == "temp":
			self.type = self.temp
		elif type == "sunrise":
			self.type = self.sunrise
		elif type == "sunset":
			self.type = self.sunset
		elif type == "geolat":
			self.type = self.geolat
		elif type == "geolong":
			self.type = self.geolong
		elif type == "picon":
			self.type = self.picon
		elif type == "fdate0":
			self.type = self.fdate0
		elif type == "fdate1":
			self.type = self.fdate1
		elif type == "fdate2":
			self.type = self.fdate2
		elif type == "fdate3":
			self.type = self.fdate3
		elif type == "fdate4":
			self.type = self.fdate4
		elif type == "fweekday0":
			self.type = self.fweekday0
		elif type == "fweekday1":
			self.type = self.fweekday1
		elif type == "fweekday2":
			self.type = self.fweekday2
		elif type == "fweekday3":
			self.type = self.fweekday3
		elif type == "fweekday4":
			self.type = self.fweekday4
		elif type == "ffulldate0":
			self.type = self.ffulldate0
		elif type == "ffulldate1":
			self.type = self.ffulldate1
		elif type == "ffulldate2":
			self.type = self.ffulldate2
		elif type == "ffulldate3":
			self.type = self.ffulldate3
		elif type == "ffulldate4":
			self.type = self.ffulldate4
		elif type == "ftemp0":
			self.type = self.ftemp0
		elif type == "ftemp1":
			self.type = self.ftemp1
		elif type == "ftemp2":
			self.type = self.ftemp2
		elif type == "ftemp3":
			self.type = self.ftemp3
		elif type == "ftemp4":
			self.type = self.ftemp4
		elif type == "ftext0":
			self.type = self.ftext0
		elif type == "ftext1":
			self.type = self.ftext1
		elif type == "ftext2":
			self.type = self.ftext2
		elif type == "ftext3":
			self.type = self.ftext3
		elif type == "ftext4":
			self.type = self.ftext4
		elif type == "fpicon0":
			self.type = self.fpicon0
		elif type == "fpicon1":
			self.type = self.fpicon1
		elif type == "fpicon2":
			self.type = self.fpicon2
		elif type == "fpicon3":
			self.type = self.fpicon3
		elif type == "fpicon4":
			self.type = self.fpicon4
		elif type == "fshortdate0":
			self.type = self.fshortdate0
		elif type == "fshortdate1":
			self.type = self.fshortdate1
		elif type == "fshortdate2":
			self.type = self.fshortdate2
		elif type == "fshortdate3":
			self.type = self.fshortdate3
		elif type == "fshortdate4":
			self.type = self.fshortdate4
		elif type == "cityid":
			self.type = self.cityid
		self.iConsole = iConsole()
		self.poll_interval = time_update_ms
		self.poll_enabled = True