use ScrollLabel in update plugin to let the user see the whole result of the update...
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 28 Jan 2006 00:07:24 +0000 (00:07 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 28 Jan 2006 00:07:24 +0000 (00:07 +0000)
lib/python/Plugins/update/plugin.py

index eff4b00af5e4448f486cfb6311a935dda6dcbfb3..fb332a5e85a2e9ac9298301368c6c784defffe44 100644 (file)
@@ -2,7 +2,7 @@ from enigma import *
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Components.ActionMap import ActionMap
-from Components.Label import Label
+from Components.ScrollLabel import ScrollLabel
 from Components.GUIComponent import *
 
 import os
@@ -17,12 +17,14 @@ class Upgrade(Screen):
                self.skin = Upgrade.skin
                Screen.__init__(self, session)
 
-               self["text"] = Label(_("Please press OK!"))
+               self["text"] = ScrollLabel(_("Please press OK!"))
                                
-               self["actions"] = ActionMap(["WizardActions"], 
+               self["actions"] = ActionMap(["WizardActions", "DirectionActions"], 
                {
                        "ok": self.go,
-                       "back": self.close
+                       "back": self.close,
+                       "up": self["text"].pageUp,
+                       "down": self["text"].pageDown
                }, -1)
                
                self.update = True