add openWithCallback and return values
[enigma2.git] / lib / python / Screens / MessageBox.py
index bb6318b..bde31e8 100644 (file)
@@ -10,6 +10,12 @@ class MessageBox(Screen):
 
                self["actions"] = ActionMap(["OkCancelActions"], 
                        {
-                               "cancel": self.close
+                               "cancel": self.cancel,
+                               "ok": self.ok
                        })
-
+       
+       def cancel(self):
+               self.close(False)
+       
+       def ok(self):
+               self.close(True)