1 from Wizard import Wizard, wizardManager
3 from Components.config import configElementBoolean, config
4 from Components.Pixmap import *
6 from LanguageSelection import LanguageSelection
9 config.misc.firstruntutorial = configElementBoolean("config.misc.firstruntutorial", 1);
11 class TutorialWizard(Wizard):
13 <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder">
14 <widget name="text" position="50,100" size="440,200" font="Regular;23" />
15 <widget name="list" position="50,300" zPosition="1" size="440,200" />
16 <widget name="rc" pixmap="/usr/share/enigma2/rc.png" position="500,600" zPosition="10" size="154,475" transparent="1" alphatest="on"/>
17 <widget name="arrowdown" pixmap="/usr/share/enigma2/arrowdown.png" position="0,0" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
18 <widget name="arrowup" pixmap="/usr/share/enigma2/arrowup.png" position="-100,-100" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
19 <widget name="arrowup2" pixmap="/usr/share/enigma2/arrowup.png" position="-100,-100" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
22 def __init__(self, session):
23 self.skin = TutorialWizard.skin
24 self.xmlfile = "tutorialwizard.xml"
26 Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=False)
27 self["rc"] = MovingPixmap()
28 self["arrowdown"] = MovingPixmap()
29 self["arrowup"] = MovingPixmap()
30 self["arrowup2"] = MovingPixmap()
33 config.misc.firstruntutorial.value = 1;
34 config.misc.firstruntutorial.save()
36 #wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value)