add transponderlist
[enigma2.git] / lib / python / Screens / MessageBox.py
1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.Label import Label
4
5 class MessageBox(Screen):
6         def __init__(self, session, text):
7                 Screen.__init__(self, session)
8                 
9                 self["text"] = Label(text)
10
11                 self["actions"] = ActionMap(["OkCancelActions"], 
12                         {
13                                 "cancel": self.cancel,
14                                 "ok": self.ok
15                         })
16         
17         def cancel(self):
18                 self.close(False)
19         
20         def ok(self):
21                 self.close(True)