From db3210090df08c276af7ac14cdfe7b09214a3dbd Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 24 Jul 2006 13:53:01 +0000 Subject: add more useful __repr__ --- lib/python/Screens/MessageBox.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/python/Screens/MessageBox.py') diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index e850f7fc..8b599a37 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() @@ -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 + ")" -- cgit v1.2.3