diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/MessageBox.py | 7 | ||||
| -rw-r--r-- | lib/python/Screens/Screen.py | 3 |
2 files changed, 9 insertions, 1 deletions
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 + ")" diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py index 060270b1..0727f78b 100644 --- a/lib/python/Screens/Screen.py +++ b/lib/python/Screens/Screen.py @@ -113,3 +113,6 @@ class Screen(dict, HTMLSkin, GUISkin): for val in self.values() + self.renderer: if isinstance(val, GUIComponent) or isinstance(val, Source): val.onHide() + + def __repr__(self): + return str(type(self)) |
