X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fbc79da5c84135c8a8e46060d3edc157ec85d006..a49c13f0e72b875083fbbe349ea84516f76e10e5:/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 32052e28..378bf207 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 @@ -71,7 +73,8 @@ class VideoWizard(Wizard): list = [] print "modes for port", self.port for mode in self.hw.getModeList(self.port): - list.append((mode[0], mode[0])) + if mode[0] != "PC": + list.append((mode[0], mode[0])) return list def modeSelectionMade(self, index): @@ -111,3 +114,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