From 1a1ed192c7d9009498b004f52334e3c705380a1c Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 9 Dec 2005 01:07:10 +0000 Subject: [PATCH] add tunersetup to the startwizard (just a proof of concept as of now) --- data/startwizard.xml | 26 +++++++++++++++++++++++++- lib/python/Screens/Satconfig.py | 8 ++++++-- lib/python/Screens/Wizard.py | 1 + 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/data/startwizard.xml b/data/startwizard.xml index 14bcd56d..c38558d0 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -22,6 +22,30 @@ self["arrowup"].startMoving() + + + +self["arrowup"].moveTo(740, 355, 10) +self["arrowup"].startMoving() +self["arrowdown"].clearPath(True) +self["arrowdown"].addMovePoint(510, 300, 10) +self["arrowdown"].addMovePoint(610, 300, 10) +self["arrowdown"].startMoving() + + + + + + +self["arrowup"].moveTo(740, 355, 10) +self["arrowup"].startMoving() +self["arrowdown"].clearPath(True) +self["arrowdown"].addMovePoint(510, 300, 10) +self["arrowdown"].addMovePoint(610, 300, 10) +self["arrowdown"].startMoving() + + + @@ -33,7 +57,7 @@ self["arrowdown"].addMovePoint(610, 300, 10) self["arrowdown"].startMoving() - + self["arrowdown"].moveTo(740, 200, 10) diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index 21063942..e6033ebc 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -98,9 +98,13 @@ class NimSetup(Screen): x[1].cancel() self.close() - def __init__(self, session, nim): + def __init__(self, session, nim = None): Screen.__init__(self, session) - self.nim = nim + + if nim == None: + self.nim = nimmanager.nimList()[0][1] + else: + self.nim = nim self["actions"] = NumberActionMap(["SetupActions"], { diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index c055f312..ac85b4c6 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -106,6 +106,7 @@ class WelcomeWizard(Screen, HelpableScreen): self["list"].l.setList(self.list) if (self.wizard[self.currStep]["config"] != None): + print self.wizard[self.currStep]["config"] self.configInstance = self.session.instantiateDialog(self.wizard[self.currStep]["config"]) self["config"].l.setList(self.configInstance["config"].list) else: -- 2.30.2