blob: 1c0c41088831bee5f2e909a698f176be1f9a814f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from Wizard import Wizard, wizardManager
from Components.config import ConfigBoolean, config
from Components.Pixmap import MovingPixmap
config.misc.firstruntutorial = ConfigBoolean(default = True)
class TutorialWizard(Wizard):
def __init__(self, session):
self.xmlfile = "tutorialwizard.xml"
Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=False)
self["rc"] = MovingPixmap()
self["arrowdown"] = MovingPixmap()
self["arrowup"] = MovingPixmap()
self["arrowup2"] = MovingPixmap()
def markDone(self):
config.misc.firstruntutorial.value = False
config.misc.firstruntutorial.save()
#wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value, priority = 30)
|