1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.Label import Label
4 from Components.Button import Button
5 from enigma import eSize, ePoint
7 class MessageBox(Screen):
8 def __init__(self, session, text):
9 Screen.__init__(self, session)
11 self["text"] = Label(text)
13 self["key_green"] = Button("OK")
14 self["key_red"] = Button("Exit")
16 self["actions"] = ActionMap(["MsgBoxActions"],
18 "cancel": self.cancel,