from Screen import Screen
+import string
+
from Screens.HelpMenu import HelpableScreen
from Components.Label import Label
from Components.Slider import Slider
self.lastStep = int(attrs.get('number'))
self.wizard[self.lastStep] = {"text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": ""}
elif (name == "text"):
- self.wizard[self.lastStep]["text"] = _(str(attrs.get('value')))
+ self.wizard[self.lastStep]["text"] = string.replace(str(attrs.get('value')), "\\n", "\n")
elif (name == "listentry"):
self.wizard[self.lastStep]["list"].append((str(attrs.get('caption')), str(attrs.get('step'))))
elif (name == "config"):
self["list"] = MenuList(self.list)
self.onShown.append(self.updateValues)
+ self.onClose.append(self.delReferences)
self["actions"] = NumberActionMap(["WizardActions", "NumberActions"],
{
self["step"].setText(_("Step ") + str(self.currStep) + "/" + str(self.numSteps))
self["stepslider"].setValue(self.currStep)
+ print _(self.wizard[self.currStep]["text"])
self["text"].setText(_(self.wizard[self.currStep]["text"]))
if self.wizard[self.currStep]["code"] != "":
else:
self["config"].l.setList([])
+ def delReferences(self):
+ del self.configInstance
+
class WizardManager:
def __init__(self):
self.wizards = []