X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FStartWizard.py;h=a60e3d2ab72adc63da34723d768830495a52a2e0;hp=7a374543b41996fc69b606e1d962afa158782f1b;hb=e66f4bdb5fd20a77e5db713d732275aa32b22af5;hpb=549ed3c87c4d3fe093472aa199ca6742c1f3654f diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index 7a37454..a60e3d2 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -1,24 +1,28 @@ from Wizard import Wizard, wizardManager -from Components.Pixmap import * -from Components.config import configElementBoolean, config +from Components.Pixmap import Pixmap, MovingPixmap +from Components.config import config, ConfigBoolean, configfile from LanguageSelection import LanguageSelection +#from DefaultWizard import DefaultWizard -config.misc.firstrun = configElementBoolean("config.misc.firstrun", 1); +config.misc.firstrun = ConfigBoolean(default = True) +config.misc.languageselected = ConfigBoolean(default = True) class StartWizard(Wizard): skin = """ - - + + + + - - - - - + + + + + """ def __init__(self, session): @@ -33,8 +37,10 @@ class StartWizard(Wizard): self["arrowup2"] = MovingPixmap() def markDone(self): - config.misc.firstrun.value = 0; + config.misc.firstrun.value = 0 config.misc.firstrun.save() + configfile.save() -wizardManager.registerWizard(LanguageSelection, config.misc.firstrun.value) -wizardManager.registerWizard(StartWizard, config.misc.firstrun.value) +wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value, priority = 5) +#wizardManager.registerWizard(DefaultWizard, config.misc.defaultchosen.value) +wizardManager.registerWizard(StartWizard, config.misc.firstrun.value, priority = 20)