X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b2d6392a3b41f870b5615c8e19b26496e56f6310..5763b994b39952bc06a75e634b4418f13b0aeaf2:/lib/python/Screens/MessageBox.py diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index 632c9bc5..51dd2fb4 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -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) - elif type != self.TYPE_YESNO: - self.onShown.append(self["QuestionPixmap"].hideWidget) - + self["ErrorPixmap"].hide() + if type != self.TYPE_YESNO: + self["QuestionPixmap"].hide() + if 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)