config entries must be defined globally
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / VideoWizard.py
index aa0e678..5524dfc 100644 (file)
@@ -5,6 +5,8 @@ from VideoHardware import video_hw
 from Components.Pixmap import Pixmap, MovingPixmap
 from Components.config import config, ConfigBoolean, configfile
 
+config.misc.showtestcard = ConfigBoolean(default = False)
+
 class VideoWizard(Wizard):
        skin = """
                <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder" >
@@ -36,7 +38,6 @@ class VideoWizard(Wizard):
                self.port = None
                self.mode = None
                
-               config.misc.showtestcard = ConfigBoolean(default = False)
                
        def createSummary(self):
                print "++++++++++++***++**** VideoWizard-createSummary"
@@ -73,7 +74,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):
@@ -120,4 +122,4 @@ class VideoWizard(Wizard):
                if selection == "yes":
                        config.misc.showtestcard.value = True
                else:
-                       config.misc.showtestcard.value = False
\ No newline at end of file
+                       config.misc.showtestcard.value = False