aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/EpgSelection.py
blob: aeab4f03f3864502c4e4dd6dbfa2031563696dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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()