diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py | 10 | ||||
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 32052e28..aa0e678b 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -36,6 +36,8 @@ class VideoWizard(Wizard): self.port = None self.mode = None + config.misc.showtestcard = ConfigBoolean(default = False) + def createSummary(self): print "++++++++++++***++**** VideoWizard-createSummary" from Screens.Wizard import WizardSummary @@ -111,3 +113,11 @@ class VideoWizard(Wizard): def rateSelect(self, rate): self.hw.setMode(port = self.port, mode = self.mode, rate = rate) + def showTestCard(self, selection = None): + if selection is None: + selection = self.selection + print "set config.misc.showtestcard to", {'yes': True, 'no': False}[selection] + if selection == "yes": + config.misc.showtestcard.value = True + else: + config.misc.showtestcard.value = False
\ No newline at end of file diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml index c9b6219c..5d54b2f1 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml +++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml @@ -115,12 +115,12 @@ self.rateSelect("50Hz") </code> </step> <step id="end"> - <!--text value="The input port should be configured now.\nYou can now configure the screen by displaying some test pictures. Do you want to do that now?" /--> - <text value="You have successfully finished the video setup. If you want to change the settings later, you can do this in the settings menu."/> + <text value="The input port should be configured now.\nYou can now configure the screen by displaying some test pictures. Do you want to do that now?" /> + <!--text value="You have successfully finished the video setup. If you want to change the settings later, you can do this in the settings menu."/--> <displaytext value="No picture on TV? Press EXIT and retry." /> - <!--list> + <list evaluation="showTestCard" onselect="showTestCard"> <listentry caption="Yes" step="yes" /> <listentry caption="No" step="no" /> - </list--> + </list> </step> </wizard> |
