blob: 4391409a8e124e85f914937546936f31372e8740 (
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
43
|
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, root):
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
setRoot(root)
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()
|