aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/EpgSelection.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens/EpgSelection.py')
-rw-r--r--lib/python/Screens/EpgSelection.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/python/Screens/EpgSelection.py b/lib/python/Screens/EpgSelection.py
new file mode 100644
index 00000000..aeab4f03
--- /dev/null
+++ b/lib/python/Screens/EpgSelection.py
@@ -0,0 +1,42 @@
+from Screen import Screen
+from Components.Button import Button
+from Components.EpgList import EPGList
+from Components.ActionMap import ActionMap
+
+from enigma import eServiceReference
+
+from Screens.FixedMenu import FixedMenu
+
+import xml.dom.minidom
+
+class EPGSelection(Screen):
+ def __init__(self, session):
+ Screen.__init__(self, session)
+
+ self["list"] = EPGList()
+# self["list"].setRoot(root)
+
+ class ChannelActionMap(ActionMap):
+ def action(self, contexts, action):
+ ActionMap.action(self, contexts, action)
+
+ self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions"],
+ {
+ "cancel": self.close,
+ "ok": self.eventSelected,
+ })
+ self["actions"].csel = self
+
+ def eventSelected(self):
+ ref = self["list"].getCurrent()
+# open eventdetail view... not finished yet
+ self.close()
+
+ def setRoot(self, root):
+ self["list"].setRoot(root)
+
+ def moveUp(self):
+ self["list"].moveUp()
+
+ def moveDown(self):
+ self["list"].moveDown()