config entries must be defined globally
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 11 Feb 2008 14:51:43 +0000 (14:51 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 11 Feb 2008 14:51:43 +0000 (14:51 +0000)
lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py

index 378bf20726d6a7b842af356ad7bb99f92d35a9e2..5524dfce92bdac9d86a03197dec16b88271f8e06 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"
@@ -121,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