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/TutorialWizard.py | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/python/Screens/TutorialWizard.py (limited to 'lib/python/Screens/TutorialWizard.py') diff --git a/lib/python/Screens/TutorialWizard.py b/lib/python/Screens/TutorialWizard.py new file mode 100644 index 00000000..234047d0 --- /dev/null +++ b/lib/python/Screens/TutorialWizard.py @@ -0,0 +1,37 @@ +from Wizard import Wizard, wizardManager + +from Components.config import configElementBoolean, config +from Components.Pixmap import * + +from LanguageSelection import LanguageSelection + + +config.misc.firstruntutorial = configElementBoolean("config.misc.firstruntutorial", 1); + +class TutorialWizard(Wizard): + skin = """ + + + + + + + + + """ + + def __init__(self, session): + self.skin = TutorialWizard.skin + self.xmlfile = "tutorialwizard.xml" + + Wizard.__init__(self, session, showSteps=False, showStepSlider=False) + self["rc"] = MovingPixmap() + self["arrowdown"] = MovingPixmap() + self["arrowup"] = MovingPixmap() + self["arrowup2"] = MovingPixmap() + + def markDone(self): + config.misc.firstruntutorial.value = 1; + config.misc.firstruntutorial.save() + +#wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value) \ No newline at end of file -- cgit v1.2.3