add possibility to separately set fan voltage and fan pwm for standby and normal run
[enigma2.git] / lib / python / Screens / StartWizard.py
1 from Wizard import wizardManager
2 from Screens.WizardLanguage import WizardLanguage
3 from Screens.ScanSetup import DefaultSatLists
4 from Screens.DefaultWizard import DefaultWizard
5 from Screens.Rc import Rc
6
7 from Components.Pixmap import Pixmap, MovingPixmap, MultiPixmap
8 from Components.config import config, ConfigBoolean, configfile, ConfigSubsection
9
10 from LanguageSelection import LanguageWizard
11
12 config.misc.firstrun = ConfigBoolean(default = True)
13 config.misc.startwizard = ConfigSubsection()
14 config.misc.startwizard.shownimconfig = ConfigBoolean(default = True)
15 config.misc.startwizard.doservicescan = ConfigBoolean(default = True)
16 config.misc.languageselected = ConfigBoolean(default = True)
17
18 class StartWizard(DefaultSatLists, Rc):
19         def __init__(self, session, silent = True, showSteps = False, neededTag = None):
20                 self.xmlfile = ["startwizard.xml", "defaultsatlists.xml"]
21                 WizardLanguage.__init__(self, session, showSteps = False)
22                 DefaultWizard.__init__(self, session, silent, showSteps, neededTag = "services")
23                 Rc.__init__(self)
24                 self["wizard"] = Pixmap()
25                                 
26         def markDone(self):
27                 config.misc.firstrun.value = 0
28                 config.misc.firstrun.save()
29                 configfile.save()
30                 
31 wizardManager.registerWizard(LanguageWizard, config.misc.languageselected.value, priority = 5)
32 wizardManager.registerWizard(StartWizard, config.misc.firstrun.value, priority = 20)