Exemple #1
0
 def __init__(self, session, parent):
     ScreenSummary.__init__(self, session, parent=parent)
     self["entry"] = StaticText("")
     if self.addWatcher not in self.onShow:
         self.onShow.append(self.addWatcher)
     if self.removeWatcher not in self.onHide:
         self.onHide.append(self.removeWatcher)
Exemple #2
0
 def __init__(self, session, parent):
     ScreenSummary.__init__(self, session, parent=parent)
     self.skinName = "AboutSummary"
     aboutText = _("Model: %s %s\n") % (getMachineBrand(), getMachineName())
     if path.exists("/proc/stb/info/chipset"):
         chipset = open("/proc/stb/info/chipset", "r").read()
         aboutText += _("Chipset: %s") % chipset.replace("\n", "") + "\n"
     aboutText += _("ViX version: %s") % getImageVersion() + "\n"
     aboutText += _("Build: %s") % getImageBuild() + "\n"
     aboutText += _("Kernel: %s") % about.getKernelVersionString() + "\n"
     string = getDriverDate()
     year = string[0:4]
     month = string[4:6]
     day = string[6:8]
     driversdate = "-".join((year, month, day))
     aboutText += _("Drivers: %s") % driversdate + "\n"
     aboutText += _("Last update: %s") % getEnigmaVersionString() + "\n\n"
     tempinfo = ""
     if path.exists("/proc/stb/sensors/temp0/value"):
         with open("/proc/stb/sensors/temp0/value", "r") as f:
             tempinfo = f.read()
     elif path.exists("/proc/stb/fp/temp_sensor"):
         with open("/proc/stb/fp/temp_sensor", "r") as f:
             tempinfo = f.read()
     elif path.exists("/proc/stb/sensors/temp/value"):
         with open("/proc/stb/sensors/temp/value", "r") as f:
             tempinfo = f.read()
     if tempinfo and int(tempinfo.replace("\n", "")) > 0:
         aboutText += _("System temperature: %s") % tempinfo.replace(
             "\n", "") + "\xb0" + "C\n\n"
     self["about"] = StaticText(
         aboutText)  # DEBUG: Proposed for new summary screens.
     self["AboutText"] = StaticText(aboutText)
 def __init__(self, session, parent):
     ScreenSummary.__init__(self, session, parent=parent)
     self["text"] = StaticText(parent.text)
     self["option"] = StaticText("")
     if hasattr(self, "list"):
         if self.addWatcher not in self.onShow:
             self.onShow.append(self.addWatcher)
         if self.removeWatcher not in self.onHide:
             self.onHide.append(self.removeWatcher)
Exemple #4
0
	def __init__(self, session, parent):
		ScreenSummary.__init__(self, session, parent=parent)
		self.skinName =["MenuHorizontalSummary"]
		self["title"] = StaticText(self.parent.title)
		self["entry"] = StaticText()
		if self.addWatcher not in self.onShow:
			self.onShow.append(self.addWatcher)
		if self.removeWatcher not in self.onHide:
			self.onHide.append(self.removeWatcher)
Exemple #5
0
	def __init__(self, session, parent):
		ScreenSummary.__init__(self, session, parent=parent)
		self["entry"] = StaticText("")  # DEBUG: Proposed for new summary screens.
		self["value"] = StaticText("")  # DEBUG: Proposed for new summary screens.
		self["SetupTitle"] = StaticText(parent.getTitle())
		self["SetupEntry"] = StaticText("")
		self["SetupValue"] = StaticText("")
		if self.addWatcher not in self.onShow:
			self.onShow.append(self.addWatcher)
		if self.removeWatcher not in self.onHide:
			self.onHide.append(self.removeWatcher)
Exemple #6
0
 def __init__(self, session, parent):
     ScreenSummary.__init__(self, session, parent=parent)
     self["entry"] = StaticText(
         ""
     )  # Use the same widget as the Setup Summary screen so the screens can be shared.
     self["value"] = StaticText(
         ""
     )  # Use the same widget as the Setup Summary screen so the screens can be shared.
     self["activity"] = Slider(0, 100)
     if self.addWatcher not in self.onShow:
         self.onShow.append(self.addWatcher)
     if self.removeWatcher not in self.onHide:
         self.onHide.append(self.removeWatcher)
Exemple #7
0
 def __init__(self, session, parent):
     ScreenSummary.__init__(self, session, parent=parent)
     self["entry"] = StaticText(
         ""
     )  # Use the same widget as the Setup Summary screen so the screens can be shared.
     self["value"] = StaticText(
         ""
     )  # Use the same widget as the Setup Summary screen so the screens can be shared.
     self.statusText = [
         parent["feedstatus_off"].getText(),
         parent["feedstatus_red"].getText(),
         parent["feedstatus_yellow"].getText(),
         parent["feedstatus_green"].getText()
     ]
     if self.addWatcher not in self.onShow:
         self.onShow.append(self.addWatcher)
     if self.removeWatcher not in self.onHide:
         self.onHide.append(self.removeWatcher)