diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-02-11 14:12:52 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-02-11 14:12:52 +0000 |
| commit | 5bc8209d19e1d41f289cfe198e4e3a839adf894b (patch) | |
| tree | 34a7906db00712fd20837887212223f50236979b /lib/python/Screens/Wizard.py | |
| parent | b6748e04393c47c18453c2d2fda88e315aa9d55d (diff) | |
| download | enigma2-5bc8209d19e1d41f289cfe198e4e3a839adf894b.tar.gz enigma2-5bc8209d19e1d41f289cfe198e4e3a839adf894b.zip | |
add a 'priority' for wizard screens to define the run order
Diffstat (limited to 'lib/python/Screens/Wizard.py')
| -rw-r--r-- | lib/python/Screens/Wizard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index e574f861..1b133152 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -459,14 +459,14 @@ class WizardManager: def __init__(self): self.wizards = [] - def registerWizard(self, wizard, precondition): - self.wizards.append((wizard, precondition)) + def registerWizard(self, wizard, precondition, priority = 0): + self.wizards.append((wizard, precondition, priority)) def getWizards(self): list = [] for x in self.wizards: if x[1] == 1: # precondition - list.append(x[0]) + list.append((x[2], x[0])) return list wizardManager = WizardManager() |
