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, showList=True, showConfig=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)