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