From 796ca1530ab14e7694e5569d136ca128619d8e07 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 9 Dec 2005 10:54:41 +0000 Subject: [PATCH] moving up/down/left/right/around the corner/to hollywood is now possible in the wizard --- lib/python/Screens/Wizard.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index fbf26324..b7c149dd 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -97,8 +97,8 @@ class WelcomeWizard(Screen, HelpableScreen): #"cancel": self.keyCancel, "left": self.left, "right": self.right, - #"up": self.up, - #"down": self.down, + "up": self.up, + "down": self.down, #"1": self.keyNumberGlobal, #"2": self.keyNumberGlobal, #"3": self.keyNumberGlobal, @@ -137,12 +137,16 @@ class WelcomeWizard(Screen, HelpableScreen): def up(self): if (self.wizard[self.currStep]["config"]["screen"] != None): - self.configInstance.handleKey("moveUp") + self["config"].instance.moveSelection(self["config"].instance.moveUp) + elif (len(self.wizard[self.currStep]["list"]) > 0): + self["list"].instance.moveSelection(self["config"].instance.moveUp) print "up" def down(self): if (self.wizard[self.currStep]["config"]["screen"] != None): - self.configInstance.handleKey("moveDown") + self["config"].instance.moveSelection(self["config"].instance.moveDown) + elif (len(self.wizard[self.currStep]["list"]) > 0): + self["list"].instance.moveSelection(self["config"].instance.moveDown) print "down" def updateValues(self): -- 2.30.2