1 from Screen import Screen
2 from Components.Button import Button
3 from Components.EpgList import EPGList
4 from Components.ActionMap import ActionMap
6 from enigma import eServiceReference
8 from Screens.FixedMenu import FixedMenu
10 import xml.dom.minidom
12 class EPGSelection(Screen):
13 def __init__(self, session, root):
14 Screen.__init__(self, session)
16 self["list"] = EPGList()
17 # self["list"].setRoot(root)
19 class ChannelActionMap(ActionMap):
20 def action(self, contexts, action):
21 ActionMap.action(self, contexts, action)
23 self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions"],
26 "ok": self.eventSelected,
28 self["actions"].csel = self
31 def eventSelected(self):
32 ref = self["list"].getCurrent()
33 # open eventdetail view... not finished yet
36 def setRoot(self, root):
37 self["list"].setRoot(root)
43 self["list"].moveDown()