add ability to remove list and config from a wizard
[vuplus_dvbapp] / lib / python / Screens / TutorialWizard.py
1 from Wizard import Wizard, wizardManager
2
3 from Components.config import configElementBoolean, config
4 from Components.Pixmap import *
5
6 from LanguageSelection import LanguageSelection
7
8
9 config.misc.firstruntutorial = configElementBoolean("config.misc.firstruntutorial", 1);
10
11 class TutorialWizard(Wizard):
12         skin = """
13                 <screen position="0,0" size="720,560" title="Welcome..." flags="wfNoBorder" >
14                         <widget name="text" position="50,100" size="440,200" font="Arial;23" />
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"/>
19                 </screen>"""
20         
21         def __init__(self, session):
22                 self.skin = TutorialWizard.skin
23                 self.xmlfile = "tutorialwizard.xml"
24                 
25                 Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=False, showConfig=False)
26                 self["rc"] = MovingPixmap()
27                 self["arrowdown"] = MovingPixmap()
28                 self["arrowup"] = MovingPixmap()
29                 self["arrowup2"] = MovingPixmap()
30                 
31         def markDone(self):
32                 config.misc.firstruntutorial.value = 1;
33                 config.misc.firstruntutorial.save()
34                         
35 #wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value)