Пример #1
0
 def __init__(self, session, ref, openPlugin, eventid=None):
     EPGSelection.__init__(self, session, ref.toString(), eventid=eventid)
     if not isinstance(self.skinName, list):
         self.skinName = [self.skinName]
     self.skinName.append("EPGSelection")
     self["key_green"].text = _("Search")
     self.openPlugin = openPlugin
Пример #2
0
	def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None, serviceChangeCB=None):
		Screen.__init__(self, session)
		EPGSelection.__init__(self, session, service, zapFunc, eventid, bouquetChangeCB, serviceChangeCB)
		EPGSelection.skinName = "NewEasyPG"
		self.skinName = "NewEasyPG"
		
		global EINposition
		EINposition = 0
		allbouq = InfoBar_instance.servicelist.getBouquetList()
		for newpos in range(0, len(allbouq)):
			if InfoBar_instance.servicelist.getRoot() == allbouq[newpos][1]:
				EINposition = newpos
				break
		
		self.initPrimeTime = False
		self.session = session

		self.primeTimeHour = config.plugins.EasyInfo.primeTime2.value[0]
		self.primeTimeMinute = config.plugins.EasyInfo.primeTime2.value[1]
		
		self["list"] = EasyInfoEventList(type = EPG_TYPE_MULTI, selChangedCB = self.onSelectionChanged, timer = session.nav.RecordTimer)

		self.refreshTimer = eTimer()
		self.refreshTimer_conn = self.refreshTimer.timeout.connect(self.refreshEPG)
		
		self["actions"] = ActionMap(["EPGSelectActions", "OkCancelActions", "NumberActions", "InfobarActions"],
			{
				"cancel": self.closeScreen,
				"ok": self.okPressed,
				"timerAdd": self.timerAdd,
				"yellow": self.yellowButtonPressed,
				"blue": self.blueButtonPressed,
				"info": self.infoKeyPressed,
				"red": self.redButtonPressed,
				"input_date_time": self.openContextMenu,
				"nextBouquet": self.nextBouquet,
				"prevBouquet": self.prevBouquet,
				"nextService": self.goToPrimeTimeNextDay,
				"prevService": self.goToPrimeTimePreviousDay,
				"showMovies": self.enterDateTime,
				"showTv": self.zapTo,
				"showRadio": self.zapAndRefresh,
				"0": self.goToCurrentTime,
				"1": self.setPrimeTime1,
				"2": self.setPrimeTime2,
				"3": self.setPrimeTime3
			},-1)
Пример #3
0
	def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None, serviceChangeCB=None):
		Screen.__init__(self, session)
		EPGSelection.__init__(self, session, service, zapFunc, eventid, bouquetChangeCB, serviceChangeCB)
		EPGSelection.skinName = "NewEasySelection"
		self.skinName = "NewEasySelection"
		
		global EINposition
		EINposition = 0
		bouquets = InfoBar_instance.servicelist.getBouquetList()
		for pos in range(0, len(bouquets)):
			if InfoBar_instance.servicelist.getRoot() == bouquets[pos][1]:
				EINposition = pos
				break
		
		self.session = session

		self["list"] = EasyInfoEventList(type = EPG_TYPE_MULTI, selChangedCB = self.onSelectionChanged, timer = session.nav.RecordTimer)
		self["listNext"] = EasyInfoEventList(type = EPG_TYPE_MULTI, selChangedCB = self.onSelectionChanged, timer = session.nav.RecordTimer, hasChannelInfo=False)

		self["actions"] = ActionMap(["EPGSelectActions", "OkCancelActions", "DirectionActions"],
			{
				"cancel": self.closeScreen,
				"ok": self.okPressed,
				"info": self.infoKeyPressed,
				"nextBouquet": self.nextBouquet,
				"prevBouquet": self.prevBouquet,
				"right": self.rightPressed,
				"rightRepeated": self.rightPressed,
				"left": self.leftPressed,
				"leftRepeated": self.leftPressed,
				"up": self.upPressed,
				"upRepeated": self.upPressed,
				"down": self.downPressed,
				"downRepeated": self.downPressed,
				"nextService": self.setModePrimeTime,
				"prevService": self.setModeNowNext,
			},-1)
		
		self.onLayoutFinish.append(self.layoutFinished)
Пример #4
0
	def __init__(self, session, service, zapFunc=None, eventid=None, bouquetChangeCB=None, serviceChangeCB=None):
		Screen.__init__(self, session)
		EPGSelection.__init__(self, session, service, zapFunc, eventid, bouquetChangeCB, serviceChangeCB)
		global EINposition
		EINposition = 0
		self.PTinit = False
		self.session = session
		EPGSelection.skinName = "EasyPG"
		self.PThour = config.plugins.EasyInfo.Primetime2.value[0]
		self.PTmin = config.plugins.EasyInfo.Primetime2.value[1]
		self["list"] = EvNewList(type = EPG_TYPE_MULTI, selChangedCB = self.onSelectionChanged, timer = session.nav.RecordTimer)
		self.skinName = "EasyPG"
		self.RefrTimer = eTimer()
		self.RefrTimer.callback.append(self.RefreshEPG)
		self["actions"] = ActionMap(["EPGSelectActions", "OkCancelActions", "NumberActions", "InfobarActions"],
			{
				"cancel": self.closeScreen,
				"ok": self.newOKFunc,
				"timerAdd": self.timerAdd,
				"yellow": self.yellowButtonPressed,
				"blue": self.blueButtonPressed,
				"info": self.infoKeyPressed,
				"red": self.newRedFunc,
				"input_date_time": self.einContextMenu,
				"nextBouquet": self.nextBouquet,
				"prevBouquet": self.prevBouquet,
				"nextService": self.PTfor,
				"prevService": self.PTback,
				"showMovies": self.enterDateTime,
				"showTv": self.zapTo,
				"showRadio": self.zapForRefr,
				"0": self.GoFirst,
				"1": self.SetPT1,
				"2": self.SetPT2,
				"3": self.SetPT3
			},-1)
Пример #5
0
	def __init__(self, session, ref, openPlugin):
		EPGSelection.__init__(self, session, ref)
		self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
		self.openPlugin = openPlugin
Пример #6
0
	def __init__(self, session, ref, event_id=None):
		self.event_id = event_id
		EPGSelection.__init__(self, session, ref)
		self.skinName = ["CurrentSearchSingleSelection", "EPGSelection"]
	def __init__(self, *args):
		try: EPGSelection.__init__(self, *args, EPGtype='single')
		except:  EPGSelection.__init__(self, *args)
		self.skinName = "EPGSelection"
Пример #8
0
 def __init__(self, session, ref, openPlugin):
     EPGSelection.__init__(self, session, ref)
     self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
     self["key_green"].text = _("Search")
     self.openPlugin = openPlugin
	def __init__(self, *args):
		EPGSelection.__init__(self, *args)
		self.skinName = "EPGSelection"
Пример #10
0
	def __init__(self, session, ref, openPlugin):
		EPGSelection.__init__(self, session, ref)
		self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
		self.openPlugin = openPlugin
Пример #11
0
 def __init__(self, session, ref):
     EPGSelection.__init__(self, session, ref)
     self.skinName = "EPGSelection"
     self.key_green_choice = EPGSelection.EMPTY
     self.key_red_choice = EPGSelection.EMPTY
     self.skinName = "EPGSelection"
Пример #12
0
	def __init__(self, session, ref, openPlugin = True):
		EPGSelection.__init__(self, session, ref)
		self.skinName = "EPGSelection"
		self["key_green"].setText(_("Lookup"))
		self.openPlugin = openPlugin
Пример #13
0
	def __init__(self, session, ref, eventid=None, openPlugin = True):
		EPGSelection.__init__(self, session, ref.toString(), eventid=eventid)
		self.skinName = "EPGSelection"
		self["key_green"].setText(_("Lookup"))
		self.openPlugin = openPlugin
Пример #14
0
	def __init__(self, session, ref, openPlugin, eventid=None):
		EPGSelection.__init__(self, session, ref.toString(), eventid=eventid)
		self.skinName = [self.skinName, "EPGSelection"]
		self["key_green"].text = _("Search")
		self.openPlugin = openPlugin
Пример #15
0
	def __init__(self, *args):
		EPGSelection.__init__(self, *args)
		self.skinName = "EPGSelection"
		self["key_red"].setText(_(" add AutoTimer"))
Пример #16
0
 def __init__(self, session, ref):
     EPGSelection.__init__(self, session, ref)
     self.skinName = "EPGSelection"
     self.key_green_choice = EPGSelection.EMPTY
     self.key_red_choice = EPGSelection.EMPTY
     self.skinName = "EPGSelection"
Пример #17
0
	def __init__(self, session, ref, eventid=None, openPlugin = True):
		EPGSelection.__init__(self, session, ref.toString(), eventid=eventid)
		self.skinName = "EPGSelection"
		self["key_green"].setText(_("Lookup"))
		self.openPlugin = openPlugin
Пример #18
0
	def __init__(self, session, ref, openPlugin):
		EPGSelection.__init__(self, session, ref)
		self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
		self["key_green"].text = _("Search")
		self.openPlugin = openPlugin
Пример #19
0
	def __init__(self, *args):
		EPGSelection.__init__(self, *args)
		self.skinName = "EPGSelection"
		self["key_red"].setText(_(" add AutoTimer"))
	def __init__(self, *args):
		EPGSelection.__init__(self, *args)
		self.skinName = "EPGSelection"
Пример #21
0
	def __init__(self, session, ref, openPlugin=True):
		EPGSelection.__init__(self, session, ref)
		self.skinName = "EPGSelection"
		self["key_yellow"].setText(_("Lookup IMDb"))
		self.openPlugin = openPlugin
Пример #22
0
	def __init__(self, session, ref, event_id=None):
		self.event_id = event_id
		EPGSelection.__init__(self, session, ref)
		self.skinName = ["CurrentSearchSingleSelection", "EPGSelection"]