本文整理汇总了Python中Screens.EpgSelection.EPGSelection类的典型用法代码示例。如果您正苦于以下问题:Python EPGSelection类的具体用法?Python EPGSelection怎么用?Python EPGSelection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了EPGSelection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: onSelectionChanged
def onSelectionChanged(self):
self["Service"].newService(eServiceReference(str(self["list"].getCurrent()[1])))
self["Event"].newEvent(self["list"].getCurrent()[0])
EPGSelection.onSelectionChanged(self)
if PartnerBoxZapRepIcons:
if self.isTMBD:
self["key_red"].setText(_("Choice list"))
示例2: onCreate
def onCreate(self):
try:
EPGSelection.onCreate(self)
if self.event_id is not None:
self["list"].moveToEventId(self.event_id)
except:
pass
示例3: searchEPGAskCallback
def searchEPGAskCallback(self, searchString, ret):
if ret:
if ret[1] == "setup":
self.lastAsk = None
self.setup()
else:
self.lastAsk = ret[1]
self.startSearchEPG(searchString, ret[1])
else:
if self.firstSearch:
# Don't save abandoned initial search,
# so don't use closeScreen()
EPGSelection.close(self)
示例4: __init__
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: closeScreen
def closeScreen(self):
# Save our history
config.plugins.epgsearch.save()
EPGSelection.close(self)
示例6: __init__
def __init__(self, session, ref, openPlugin):
EPGSelection.__init__(self, session, ref)
self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
self.openPlugin = openPlugin
示例7: __init__
def __init__(self, *args):
try: EPGSelection.__init__(self, *args, EPGtype='single')
except: EPGSelection.__init__(self, *args)
self.skinName = "EPGSelection"
示例8: onSelectionChanged
def onSelectionChanged(self):
self["Service"].newService(eServiceReference(str(self["list"].getCurrent()[1])))
self["Event"].newEvent(self["list"].getCurrent()[0])
EPGSelection.onSelectionChanged(self)
示例9: __init__
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
示例10: closeScreen
def closeScreen(self):
# Save our history
config.plugins.epgsearch.save()
self.searchStartTimer.stop()
EPGSelection.close(self)
示例11: __init__
def __init__(self, *args):
EPGSelection.__init__(self, *args)
self.skinName = "EPGSelection"
self["key_red"].setText(_(" add AutoTimer"))
示例12: __init__
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"
示例13: __init__
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: __init__
def __init__(self, session, ref, openPlugin):
EPGSelection.__init__(self, session, ref)
self.skinName = ["EPGSearchEPGSelection", "EPGSelection"]
self["key_green"].text = _("Search")
self.openPlugin = openPlugin
示例15: __init__
def __init__(self, session, ref, openPlugin=True):
EPGSelection.__init__(self, session, ref)
self.skinName = "EPGSelection"
self["key_yellow"].setText(_("Lookup IMDb"))
self.openPlugin = openPlugin