From 87cbb4d034deb2d033f350c01436e9793afaf8a6 Mon Sep 17 00:00:00 2001 From: "Chang.H.S" Date: Fri, 10 Jun 2011 10:04:40 +0900 Subject: [PATCH] FactoryTest : block ok button on smartcardtest --- lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py b/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py index 0017000..e771b70 100755 --- a/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py +++ b/lib/python/Plugins/SystemPlugins/FactoryTest/plugin.py @@ -1439,12 +1439,12 @@ class SmartCardTest(Screen): self["actions"] = ActionMap(["DirectionActions", "OkCancelActions"], { "cancel": self.keyCancel, - "ok" : self.keyCancel + "ok" : self.keyOk }, -2) Screen.__init__(self, session) self["text"]=Label(("Testing Smartcard 1...")) - self.step = 0 + self.testok = 0 self.smartcardtimer = eTimer() self.smartcardtimer.callback.append(self.check_smart_card) self.closetimer = eTimer() @@ -1484,7 +1484,7 @@ class SmartCardTest(Screen): return elif (index==1 or self.model==1): smartcardtest = 1 - self.step = 1 + self.testok = 1 self["text"].setText(_("Smart Card OK!!")) self.closetimer.start(2000,True) self.smartcardtimer.stop() @@ -1513,6 +1513,10 @@ class SmartCardTest(Screen): def keyCancel(self): self.close() + def keyOk(self): + if self.testok == 1: + self.close() + fronttest = 0 -- 2.7.4