SleepTimerEdit: Simple Messagebox to confirm (de-)activation
authorLittlesat <Littlesat99@yahoo.com>
Fri, 9 Mar 2012 23:13:23 +0000 (00:13 +0100)
committerLittlesat <Littlesat99@yahoo.com>
Fri, 9 Mar 2012 23:13:23 +0000 (00:13 +0100)
And add a timeout to it

lib/python/Screens/SleepTimerEdit.py

index 61440d4..c838660 100644 (file)
@@ -105,10 +105,10 @@ class SleepTimerEdit(Screen):
                        config.SleepTimer.action.save()
                        config.SleepTimer.ask.save()
                        self.session.nav.SleepTimer.setSleepTime(time)
-                       self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO)
+                       self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO, timeout=3, simple=True)
                else:
                        self.session.nav.SleepTimer.clear()
-                       self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been disabled."), MessageBox.TYPE_INFO)
+                       self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been disabled."), MessageBox.TYPE_INFO, timeout=3, simple=True)
 
        def keyNumberGlobal(self, number):
                self["input"].number(number)