1 from Wizard import Wizard, wizardManager
3 from Components.Pixmap import *
4 from Components.config import configElementBoolean, config, configfile
6 from LanguageSelection import LanguageSelection
8 config.misc.firstrun = configElementBoolean("config.misc.firstrun", 1);
10 class StartWizard(Wizard):
12 <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder" >
13 <widget name="text" position="153,50" size="340,270" font="Regular;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" scrollbarMode="showOnDemand" />
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"/>
24 def __init__(self, session):
25 self.skin = StartWizard.skin
26 self.xmlfile = "startwizard.xml"
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()
36 config.misc.firstrun.value = 0;
37 config.misc.firstrun.save()
40 wizardManager.registerWizard(LanguageSelection, config.misc.firstrun.value)
41 wizardManager.registerWizard(StartWizard, config.misc.firstrun.value)