From 1a1ed192c7d9009498b004f52334e3c705380a1c Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 9 Dec 2005 01:07:10 +0000 Subject: add tunersetup to the startwizard (just a proof of concept as of now) --- lib/python/Screens/Satconfig.py | 8 ++++++-- lib/python/Screens/Wizard.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/python') 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: -- cgit v1.2.3