git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some cleanups
[enigma2.git]
/
lib
/
python
/
Screens
/
MessageBox.py
diff --git
a/lib/python/Screens/MessageBox.py
b/lib/python/Screens/MessageBox.py
index ed3bb4f4a4b688003ea4d542fe4d7bce6b98411b..8b599a37f481032fd89ee39fb4577d9f3247e9f4 100644
(file)
--- 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"] = Label(text)
+ self.text = text
+
self["ErrorPixmap"] = Pixmap()
self["QuestionPixmap"] = Pixmap()
self["InfoPixmap"] = Pixmap()
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.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
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)
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 + ")"