1 from Screen import Screen
2 from Menu import MenuList
3 from Components.ActionMap import ActionMap
4 from Components.Header import Header
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"] = MenuList(list)
16 self["actions"] = ActionMap(["OkCancelActions"],
18 "ok": self.okbuttonClick,
22 self["title"] = Header(title)