1 from Screen import Screen
2 from Components.Sources.List import List
3 from Components.ActionMap import ActionMap
4 from Components.Sources.StaticText import StaticText
6 class FixedMenu(Screen):
7 def okbuttonClick(self):
8 selection = self["menu"].getCurrent()
11 def __init__(self, session, title, list):
12 Screen.__init__(self, session)
14 self["menu"] = List(list)
16 self["actions"] = ActionMap(["OkCancelActions"],
18 "ok": self.okbuttonClick,
22 self["title"] = StaticText(title)