+class WizardSummary(Screen):
+ skin = """
+ <screen position="0,0" size="132,64">
+ <widget name="text" position="6,4" size="120,42" font="Regular;14" transparent="1" />
+ <widget source="parent.list" render="Label" position="6,25" size="120,21" font="Regular;16">
+ <convert type="StringListSelection" />
+ </widget>
+ </screen>"""
+
+ def __init__(self, session, parent):
+ Screen.__init__(self, session, parent)
+
+ #names = parent.skinName
+ #if not isinstance(names, list):
+ #names = [names]
+#
+ #self.skinName = [x + "_summary" for x in names ]
+ #self.skinName.append("Wizard")
+ #print "*************+++++++++++++++++****************++++++++++******************* WizardSummary", self.skinName
+ #
+ self["text"] = Label("")
+ self.onShow.append(self.setCallback)
+
+ def setCallback(self):
+ self.parent.setLCDTextCallback(self.setText)
+
+ def setText(self, text):
+ self["text"].setText(text)
+
+class Wizard(Screen):
+ def createSummary(self):
+ print "WizardCreateSummary"
+ return WizardSummary