define variable in __init__
[enigma2.git] / mytest.py
index caad520..fc3cb57 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -322,7 +322,7 @@ class PowerKey:
                self.powerKeyTimer.timeout.get().append(self.powertimer)
                globalActionMap.actions["powerdown"]=self.powerdown
                globalActionMap.actions["powerup"]=self.powerup
-               
+               self.standbyblocked = 0
 #              self["PowerKeyActions"] = HelpableActionMap(self, "PowerKeyActions",
                        #{
                                #"powerdown": self.powerdown,