From a377b6ea97e78df6256d23fc128c17c680574d44 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sat, 17 Dec 2005 17:13:43 +0000 Subject: some work on the wizard: - each wizard has its own precondition now - the steps label and the step slider is hidable for each wizard - add a tutorial wizard --- lib/python/Screens/StartWizard.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/python/Screens/StartWizard.py') diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index 501ea6c5..56a09abe 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -1,9 +1,12 @@ from Wizard import Wizard, wizardManager from Components.Pixmap import * +from Components.config import configElementBoolean, config from LanguageSelection import LanguageSelection +config.misc.firstrun = configElementBoolean("config.misc.firstrun", 1); + class StartWizard(Wizard): skin = """ @@ -28,5 +31,9 @@ class StartWizard(Wizard): self["arrowup"] = MovingPixmap() self["arrowup2"] = MovingPixmap() -wizardManager.registerWizard(LanguageSelection) -wizardManager.registerWizard(StartWizard) + def markDone(self): + config.misc.firstrun.value = 0; + config.misc.firstrun.save() + +wizardManager.registerWizard(LanguageSelection, config.misc.firstrun.value) +wizardManager.registerWizard(StartWizard, config.misc.firstrun.value) -- cgit v1.2.3