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