1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.MenuList import MenuList
4 from Components.Label import Label
5 from enigma import eServiceReferencePtr, eServiceReference
7 class SubserviceSelection(Screen):
9 selection = self["subservices"].getCurrent()
10 self.close(selection[1])
13 def __init__(self, session, subservices):
14 Screen.__init__(self, session)
16 self["actions"] = ActionMap(["OkCancelActions"],
18 "cancel": self.Cancel,
22 self.subservices = subservices
25 n = subservices.getNumberOfSubservices()
27 i = subservices.getSubservice(x)
28 tlist.append((i.getName(), i))
30 self["subservices"] = MenuList(tlist)