Пример #1
0
 def __init__(self, session, title, playlist, selected, selection):
     Playlist.instance = self
     BaseArchivCZSKMenuListScreen.__init__(self, session, PlaylistPanelList)
     self.lst_items = playlist
     self.selected = selected
     self.selection = selection
     self["title"] = Label(toUTF8(title))
     self["actions"] = NumberActionMap(["archivCZSKActions"],
             {
             "ok": self.ok,
             "cancel": self.cancel,
             "up": self.up,
             "down": self.down,
             }, -2)
     self.onLayoutFinish.append(self.setSelection)
     self.onClose.append(self._onClose)
Пример #2
0
 def __init__(self, session, currService):
     BaseArchivCZSKMenuListScreen.__init__(self, session)
     self.session = session
     self.currService = currService
     self.searchList = seeker.getCapabilities()
     event = EventInfo(session.nav, EventInfo.NOW).getEvent()
     self.searchExp = event and event.getEventName() or ''
     self["infolist"] = PanelList([], 30)
     self['search'] = Label(self.searchExp)
     
     self["actions"] = NumberActionMap(["archivCZSKActions"],
             {
             "ok": self.ok,
             "cancel": self.cancel,
             "up": self.up,
             "down": self.down,
             "yellow": self.keyYellow,
             "red": self.keyRed,
             "blue": self.keyBlue,
             }, -2)
     
     self.onShown.append(self.updateTitle)
     self.onLayoutFinish.append(self.disableSelection)
     self.onLayoutFinish.append(self.initInfoList)