+ self.text = text
+
+ self["ErrorPixmap"] = Pixmap()
+ self["QuestionPixmap"] = Pixmap()
+ self["InfoPixmap"] = Pixmap()
+ self.timerRunning = False
+ if timeout > 0:
+ self.timer = eTimer()
+ self.timer.timeout.get().append(self.timerTick)
+ self.timer.start(1000)
+ self.origTitle = None
+ self.onShown.append(self.timerTick)
+ self.timerRunning = True
+ self.timeout = 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:
+ self.list = [ (_("yes"), 0), (_("no"), 1) ]
+