use new show/hide
[vuplus_dvbapp] / lib / python / Screens / MessageBox.py
index 632c9bc..78224e1 100644 (file)
@@ -20,13 +20,16 @@ class MessageBox(Screen):
                
                self["ErrorPixmap"] = Pixmap()
                self["QuestionPixmap"] = Pixmap()
+               self["InfoPixmap"] = Pixmap()
                
                self.list = []
                if type != self.TYPE_ERROR:
-                       self.onShown.append(self["ErrorPixmap"].hideWidget)
+                       self["ErrorPixmap"].hide()
                elif type != self.TYPE_YESNO:
-                       self.onShown.append(self["QuestionPixmap"].hideWidget)
-
+                       self["QuestionPixmap"].hide()
+               elif type != self.TYPE_INFO:
+                       self["InfoPixmap"].hide()
+                       
                if type == self.TYPE_YESNO:
                        self.list = [ (_("yes"), 0), (_("no"), 1) ]
 
@@ -51,4 +54,4 @@ class MessageBox(Screen):
                        self.close(True)
 
        def alwaysOK(self):
-               self.close(True)
\ No newline at end of file
+               self.close(True)