from xml.sax import make_parser
from xml.sax.handler import ContentHandler
-# ikseong
-from Plugins.SystemPlugins.FactoryTest.plugin import FactoryTest
-
class WizardSummary(Screen):
skin = """
<screen position="0,0" size="132,64">
self.timeoutTimer = eTimer()
self.timeoutTimer.callback.append(self.timeoutCounterFired)
- # ikseong - for memory test
- self.memorytestmode = 0
- self.testkey = 0
-
self["text"] = Label()
if showConfig:
"8": self.keyNumberGlobal,
"9": self.keyNumberGlobal,
"0": self.keyNumberGlobal,
-# ikseong
- "test":self.testmode
}, -1)
self["VirtualKB"] = NumberActionMap(["VirtualKeyboardActions"],
self.configInstance.run()
self.finished()
-# ikseong
- def testmode(self):
- print "testmode ",self.memorytestmode
- if self.memorytestmode == 0:
- self.memorytestmode = 1
- else:
- self.memorytestmode = 0
-
def keyNumberGlobal(self, number):
- if self.memorytestmode == 1:
- self.testkey = self.testkey * 10 + number
- if self.testkey > 10000:
- self.testkey = self.testkey%10000
- if self.testkey == 4599:
- self.session.open(FactoryTest)
- print "testkey", self.testkey
- return
if (self.wizard[self.currStep]["config"]["screen"] != None):
self.configInstance.keyNumberGlobal(number)
elif (self.wizard[self.currStep]["config"]["type"] == "dynamic"):
self.configInstance = self.session.instantiateDialog(self.wizard[self.currStep]["config"]["screen"])
else:
self.configInstance = self.session.instantiateDialog(self.wizard[self.currStep]["config"]["screen"], eval(self.wizard[self.currStep]["config"]["args"]))
+ self.configInstance.setAnimationMode(0)
self["config"].l.setList(self.configInstance["config"].list)
callbacks = self.configInstance["config"].onSelectionChanged
self.configInstance["config"].destroy()