self.zapFunc = zapFunc
self["key_green"] = Button(_("Add timer"))
- self["list"] = EPGList(self.type, self.onSelectionChanged)
+ self["list"] = EPGList(type = self.type, selChangedCB = self.onSelectionChanged, timer = self.session.nav.RecordTimer)
class ChannelActionMap(ActionMap):
def action(self, contexts, action):
- ActionMap.action(self, contexts, action)
+ return ActionMap.action(self, contexts, action)
self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"],
{
self.onLayoutFinish.append(self.onCreate)
def closeScreen(self):
- self.close(self.closeRecursive or self.type == EPG_TYPE_SINGLE)
+ self.close(self.closeRecursive)
def infoKeyPressed(self):
if self.type == EPG_TYPE_MULTI:
if self.type == EPG_TYPE_MULTI and cur[0] is None and cur[1].ref != old[1].ref:
self.eventViewCallback(setEvent, setService, val)
else:
- setEvent(cur[0])
setService(cur[1])
+ setEvent(cur[0])
def zapTo(self): # just used in multiepg
if self.zapFunc != None: