X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FMessageBox.py;h=8b599a37f481032fd89ee39fb4577d9f3247e9f4;hb=1c91b4b45e16c6a69b3b93b51489f8c9f7ec463b;hp=ed3bb4f4a4b688003ea4d542fe4d7bce6b98411b;hpb=fb412ff32c7938649c72d55eed3f5c8ccb5e0a99;p=vuplus_dvbapp diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index ed3bb4f..8b599a3 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -18,6 +18,8 @@ class MessageBox(Screen): self["text"] = Label(text) + self.text = text + self["ErrorPixmap"] = Pixmap() self["QuestionPixmap"] = Pixmap() self["InfoPixmap"] = Pixmap() @@ -65,7 +67,7 @@ class MessageBox(Screen): self.timeout -= 1 if self.origTitle is None: self.origTitle = self.instance.getTitle() - self.setTitle(self.origTitle + " (" + _("Timeout: ") + str(self.timeout) + ")") + self.setTitle(self.origTitle + " (" + str(self.timeout) + ")") if self.timeout == 0: self.timer.stop() self.timerRunning = False @@ -106,4 +108,7 @@ class MessageBox(Screen): if self.timerRunning: self.timer.stop() self.setTitle(self.origTitle) - self.timerRunning = False \ No newline at end of file + self.timerRunning = False + + def __repr__(self): + return str(type(self)) + "(" + self.text + ")"