add a condition to the wizard-parser
[enigma2.git] / lib / python / Screens / StartWizard.py
1 from Wizard import Wizard, wizardManager
2
3 from Components.Pixmap import *
4
5 from LanguageSelection import LanguageSelection
6
7 class StartWizard(Wizard):
8         skin = """
9                 <screen position="0,0" size="720,560" title="Welcome..." flags="wfNoBorder" >
10                         <widget name="text" position="50,100" size="440,200" font="Arial;23" />
11                         <widget name="list" position="50,300" zPosition="1" size="440,200" />
12                         <widget name="config" position="50,300" zPosition="1" size="440,200" transparent="1" />                 
13                         <widget name="step" position="50,50" size="440,25" font="Arial;23" />
14                         <widget name="stepslider" position="50,500" zPosition="1" borderWidth="2" size="440,20" backgroundColor="dark" />
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 = StartWizard.skin
23                 self.xmlfile = "startwizard.xml"
24                 
25                 Wizard.__init__(self, session)
26                 self["rc"] = MovingPixmap()
27                 self["arrowdown"] = MovingPixmap()
28                 self["arrowup"] = MovingPixmap()
29                 self["arrowup2"] = MovingPixmap()
30                 
31 wizardManager.registerWizard(LanguageSelection)
32 wizardManager.registerWizard(StartWizard)