From fb412ff32c7938649c72d55eed3f5c8ccb5e0a99 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 25 May 2006 23:14:05 +0000 Subject: add timeout for MessageBox screens (just add timeout= as argument when creating MessageBox instances) --- RecordTimer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RecordTimer.py') diff --git a/RecordTimer.py b/RecordTimer.py index 5c64f9b1..10a60138 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -160,10 +160,10 @@ class RecordTimerEntry(timer.TimerEntry): self.first_try_prepare = False if config.recording.asktozap.value == 0: self.log(8, "asking user to zap away") - Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n")) + Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n"), timeout=15) else: # zap without asking self.log(9, "zap without asking") - Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_WARNING) + Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_WARNING, timeout=15) self.failureCB(True) self.do_backoff() -- cgit v1.2.3