diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 4 | ||||
| -rw-r--r-- | lib/python/Screens/MessageBox.py | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index a9f7754b..18ae1059 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -430,9 +430,9 @@ class InfoBarInstantRecord: return if self.recording != None: - self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Do you want to stop the current\n(instant) recording?") + self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Do you want to stop the current\n(instant) recording?")) else: - self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Start recording?") + self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Start recording?")) from Screens.AudioSelection import AudioSelection diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index bde31e83..87299657 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -1,18 +1,24 @@ from Screen import Screen from Components.ActionMap import ActionMap from Components.Label import Label +from Components.Button import Button +from enigma import eSize, ePoint class MessageBox(Screen): def __init__(self, session, text): Screen.__init__(self, session) self["text"] = Label(text) + + self["key_green"] = Button("OK") + self["key_red"] = Button("Exit") self["actions"] = ActionMap(["OkCancelActions"], { "cancel": self.cancel, "ok": self.ok }) + def cancel(self): self.close(False) |
