Пример #1
0
	def __init__(self, session):
		printl("->", self, "S")
		Screen.__init__(self, session)
		
		self.APILevel = getAPILevel(self)
		printl("APILevel=" + str(self.APILevel), self)
		
		if self.APILevel >= 2:
			self["API"] = DataElement()
			
		if self.APILevel == 1:
			self.skin = PVMC_Update.skinDeprecated
		
		self.working = False
		self.Console = Console()
		self["text"] = ScrollLabel(_("Checking for updates ..."))
		
		self["actions"] = NumberActionMap(["WizardActions", "InputActions", "EPGSelectActions"],
		{
			"ok": self.close,
			"back": self.close
		}, -1)
		
		self.onLayoutFinish.append(self.setCustomTitle)
		self.onFirstExecBegin.append(self.checkForUpdate)
Пример #2
0
	def __init__(self, session):
		printl("->", self, "S")
		from Components.Sources.StaticText import StaticText
		Screen.__init__(self, session)
		ConfigListScreen.__init__(self, [], on_change=self._changed)
		
		self._session = session
		self._hasChanged = False
		
		self.APILevel = getAPILevel(self)
		printl("APILevel=" + str(self.APILevel), self)
		if self.APILevel >= 2:
			self["API"] = DataElement()
			
		if self.APILevel >= 2:
			try:
				from StillPicture import StillPicture
				self["showiframe"] = StillPicture(session)
				self.ShowStillPicture = True
			except Exception, ex:
				printl("Exception(" + str(type(ex)) + "): " + str(ex), self, "W")
Пример #3
0
	def __init__(self, isAutostart, session):
		printl("-> isAutostart=" + str(isAutostart), self, "S")
		
		Screen.__init__(self, session)
		self.isAutostart = isAutostart
		self.oldService = self.session.nav.getCurrentlyPlayingServiceReference()
		printl("self.oldService=" + str(self.oldService), self)
		self.session.nav.stopService()

		self.APILevel = getAPILevel(self)
		printl("self.APILevel=" + str(self.APILevel), self)
		if self.APILevel >= 2:
			self["API"] = DataElement()

		if self.APILevel >= 2:
			try:
				from StillPicture import StillPicture
				self["showiframe"] = StillPicture(session)
				self.ShowStillPicture = True
			except Exception, ex:
				printl("Exception(" + str(type(ex)) + "): " + str(ex), self, "W")