change StartWizard's skin to sources concept for list widgets
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 25 Jan 2008 01:07:29 +0000 (01:07 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 25 Jan 2008 01:07:29 +0000 (01:07 +0000)
lib/python/Screens/StartWizard.py

index 1734d7341da43cf98a4ac28319058e9feb09d20a..0424771ab22aec7ced213a7bc3bd848a53b7d680 100644 (file)
@@ -4,6 +4,7 @@ from Components.Pixmap import Pixmap, MovingPixmap
 from Components.config import config, ConfigBoolean, configfile
 
 from LanguageSelection import LanguageSelection
+#from DefaultWizard import DefaultWizard
 
 config.misc.firstrun = ConfigBoolean(default = True)
 config.misc.languageselected = ConfigBoolean(default = True)
@@ -12,7 +13,9 @@ class StartWizard(Wizard):
        skin = """
                <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder" >
                        <widget name="text" position="153,50" size="340,270" font="Regular;23" />
-                       <widget name="list" position="50,300" zPosition="1" size="440,200" />
+                       <widget source="list" render="Listbox" position="50,300" size="440,200" scrollbarMode="showOnDemand" >
+                               <convert type="StringList" />
+                       </widget>
                        <widget name="config" position="50,300" zPosition="1" size="440,200" transparent="1" scrollbarMode="showOnDemand" />                    
                        <widget name="stepslider" position="50,500" zPosition="1" borderWidth="2" size="440,20" backgroundColor="dark" />
                        <widget name="wizard" pixmap="wizard.png" position="40,50" zPosition="10" size="110,174" transparent="1" alphatest="on"/>
@@ -39,4 +42,6 @@ class StartWizard(Wizard):
                configfile.save()
                
 wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value)
+#wizardManager.registerWizard(DefaultWizard, config.misc.defaultchosen.value)
 wizardManager.registerWizard(StartWizard, config.misc.firstrun.value)
+