add language selection
[enigma2.git] / lib / python / Screens / MessageBox.py
index bde31e8..87da7f9 100644 (file)
@@ -1,18 +1,24 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.Label import Label
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.Label import Label
+from Components.Button import Button
+from enigma import eSize, ePoint
 
 class MessageBox(Screen):
        def __init__(self, session, text):
                Screen.__init__(self, session)
                
                self["text"] = Label(text)
 
 class MessageBox(Screen):
        def __init__(self, session, text):
                Screen.__init__(self, session)
                
                self["text"] = Label(text)
+               
+               self["key_green"] = Button("OK")
+               self["key_red"] = Button("Exit")
 
 
-               self["actions"] = ActionMap(["OkCancelActions"], 
+               self["actions"] = ActionMap(["MsgBoxActions"], 
                        {
                                "cancel": self.cancel,
                                "ok": self.ok
                        })
                        {
                                "cancel": self.cancel,
                                "ok": self.ok
                        })
+                       
        
        def cancel(self):
                self.close(False)
        
        def cancel(self):
                self.close(False)