re-add question for test card to the video wizard
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / VideoWizard.py
index 32052e28c31bbf15a102686cfe47ed44df37ca03..aa0e678b3314c7454641213550a1534d5a4e1640 100644 (file)
@@ -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