translate the movie player
[enigma2.git] / lib / python / Screens / StartWizard.py
1 from Wizard import Wizard, wizardManager
2
3 from Components.Pixmap import *
4 from Components.config import configElementBoolean, config
5
6 from LanguageSelection import LanguageSelection
7
8 config.misc.firstrun = configElementBoolean("config.misc.firstrun", 1);
9
10 class StartWizard(Wizard):
11         skin = """
12                 <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder" >
13                         <widget name="text" position="153,50" size="340,270" font="Arial;23" />
14                         <widget name="list" position="50,300" zPosition="1" size="440,200" />
15                         <widget name="config" position="50,300" zPosition="1" size="440,200" transparent="1" />                 
16                         <widget name="stepslider" position="50,500" zPosition="1" borderWidth="2" size="440,20" backgroundColor="dark" />
17                         <widget name="wizard" pixmap="/usr/share/enigma2/wizard.png" position="40,50" zPosition="10" size="110,174" transparent="1" alphatest="on"/>
18                         <widget name="rc" pixmap="/usr/share/enigma2/rc.png" position="500,600" zPosition="10" size="154,475" transparent="1" alphatest="on"/>
19                         <widget name="arrowdown" pixmap="/usr/share/enigma2/arrowdown.png" position="0,0" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
20                         <widget name="arrowup" pixmap="/usr/share/enigma2/arrowup.png" position="-100,-100" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
21                         <widget name="arrowup2" pixmap="/usr/share/enigma2/arrowup.png" position="-100,-100" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
22                 </screen>"""
23         
24         def __init__(self, session):
25                 self.skin = StartWizard.skin
26                 self.xmlfile = "startwizard.xml"
27                 
28                 Wizard.__init__(self, session, showSteps = False)
29                 self["wizard"] = Pixmap()
30                 self["rc"] = MovingPixmap()
31                 self["arrowdown"] = MovingPixmap()
32                 self["arrowup"] = MovingPixmap()
33                 self["arrowup2"] = MovingPixmap()
34                 
35         def markDone(self):
36                 config.misc.firstrun.value = 0;
37                 config.misc.firstrun.save()
38                 
39 wizardManager.registerWizard(LanguageSelection, config.misc.firstrun.value)
40 wizardManager.registerWizard(StartWizard, config.misc.firstrun.value)