From 9208ede8da1fd495eafc24b9dd2d75d84f8a5952 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 19 Feb 2009 01:56:43 +0100 Subject: [PATCH] - increase video wizard timeout from 10 to 20 seconds - rearrange summary screen widgets - set summary screen before anything else in the wizard --- .../Plugins/SystemPlugins/Videomode/VideoWizard.py | 4 ++-- .../Plugins/SystemPlugins/Videomode/videowizard.xml | 12 ++++++------ lib/python/Screens/Wizard.py | 5 +++++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 1d7ce7b5..095e94c0 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -13,8 +13,8 @@ config.misc.showtestcard = ConfigBoolean(default = False) class VideoWizardSummary(WizardSummary): skin = """ - - + + diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml index 2a592aae..29ac4297 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml +++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml @@ -1,7 +1,7 @@ - + - + self["portpic"].show() @@ -9,7 +9,7 @@ self.clearSelectedKeys() self.selectKey("OK") - + @@ -20,7 +20,7 @@ self.selectKey("DOWN") self["portpic"].hide() - + self.condition = (self.port != "DVI" or self.mode == "PC") @@ -46,7 +46,7 @@ self.selectKey("DOWN") self.rateSelect("60Hz") - + self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"]) @@ -77,7 +77,7 @@ self.selectKey("UP") self.selectKey("DOWN") - + self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"]) diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 2326b915..7d454f43 100755 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -475,6 +475,11 @@ class Wizard(Screen): self.currStep += 1 self.updateValues() else: + if self.wizard[self.currStep].has_key("displaytext"): + displaytext = self.wizard[self.currStep]["displaytext"] + print "set LCD text" + for x in self.lcdCallbacks: + x(displaytext) if len(self.stepHistory) == 0 or self.stepHistory[-1] != self.currStep: self.stepHistory.append(self.currStep) print "wizard step:", self.wizard[self.currStep] -- 2.30.2