whitespace cleanup, use MenuList source instead of outdated component
[enigma2.git] / lib / python / Screens / FixedMenu.py
1 from Screen import Screen
2 from Components.Sources.MenuList import MenuList
3 from Components.ActionMap import ActionMap
4 from Components.Header import Header
5
6 class FixedMenu(Screen):
7         def okbuttonClick(self):
8                 selection = self["menu"].getCurrent()
9                 selection[1]()
10
11         def __init__(self, session, title, list):
12                 Screen.__init__(self, session)
13
14                 self["menu"] = MenuList(list)   
15
16                 self["actions"] = ActionMap(["OkCancelActions"], 
17                         {
18                                 "ok": self.okbuttonClick,
19                                 "cancel": self.close
20                         })
21
22                 self["title"] = Header(title)