tutorial manager proof-of-concept
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 17 Dec 2005 18:00:02 +0000 (18:00 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 17 Dec 2005 18:00:02 +0000 (18:00 +0000)
data/tutorialwizard.xml
lib/python/Screens/TutorialWizard.py
lib/python/Screens/Wizard.py

index f48812d..53046a2 100644 (file)
@@ -1,5 +1,20 @@
 <wizard>
                <step number="1">
-                       <text value="Your dreambox is a very powerful digital receiver." />
+                       <text value="By pressing the OK Button on your remote control, the info bar is being displayed." />
+                       <code>
+from Screens.InfoBar import InfoBar
+self.infobardialog = self.session.instantiateDialog(InfoBar)
+self.infobardialog.hideTimer.stop()
+self.infobardialog.instance.show()
+                       </code>
+               </step>
+               <step number="2">
+                       <text value="By pressing the OK Button on your remote control, the info bar is being displayed." />
+                       <code>
+from Screens.InfoBar import InfoBar
+self.infobardialog = self.session.instantiateDialog(InfoBar)
+self.infobardialog.hideTimer.stop()
+self.infobardialog.instance.show()
+                       </code>
                </step>
 </wizard>
index 2d30b01..0ba97d3 100644 (file)
@@ -10,7 +10,7 @@ config.misc.firstruntutorial = configElementBoolean("config.misc.firstruntutoria
 
 class TutorialWizard(Wizard):
        skin = """
-               <screen position="0,0" size="720,560" title="Welcome..." flags="wfNoBorder" >
+               <screen position="0,0" size="720,300" title="Welcome..." flags="wfNoBorder" >
                        <widget name="text" position="50,100" size="440,200" font="Arial;23" />
                        <widget name="rc" pixmap="/usr/share/enigma2/rc.png" position="500,600" zPosition="10" size="154,475" transparent="1" alphatest="on"/>
                        <widget name="arrowdown" pixmap="/usr/share/enigma2/arrowdown.png" position="0,0" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
index d652ec2..610dd29 100644 (file)
@@ -107,11 +107,6 @@ class Wizard(Screen, HelpableScreen):
                        "9": self.keyNumberGlobal,
                        "0": self.keyNumberGlobal
                }, -1)
-               
-               #self["actions"] = HelpableActionMap(self, "OkCancelActions",
-                       #{
-                               #"ok": (self.ok, _("Close this Screen...")),
-                       #})
 
        def back(self):
                self.currStep -= 1