[RecordTimer] fix repeat timer issue.
[vuplus_dvbapp] / lib / python / Screens / FixedMenu.py
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
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"] = List(list)       
15
16                 self["actions"] = ActionMap(["OkCancelActions"], 
17                         {
18                                 "ok": self.okbuttonClick,
19                                 "cancel": self.close
20                         })
21
22                 self["title"] = StaticText(title)