+ self.text = text
+ self.close_on_any_key = close_on_any_key
+
+ self["ErrorPixmap"] = Pixmap()
+ self["QuestionPixmap"] = Pixmap()
+ self["InfoPixmap"] = Pixmap()
+ self.timerRunning = False
+ self.initTimeout(timeout)
+
+ self.list = []
+ if type != self.TYPE_ERROR:
+ self["ErrorPixmap"].hide()
+ if type != self.TYPE_YESNO:
+ self["QuestionPixmap"].hide()
+ if type != self.TYPE_INFO:
+ self["InfoPixmap"].hide()
+
+ if type == self.TYPE_YESNO:
+ if default == True:
+ self.list = [ (_("yes"), 0), (_("no"), 1) ]
+ else:
+ self.list = [ (_("no"), 1), (_("yes"), 0) ]
+
+ self["list"] = MenuList(self.list)
+
+ self["actions"] = ActionMap(["MsgBoxActions", "DirectionActions"],