tests/svghmi/py_ext_0@py_ext/pyfile.xml
branchsvghmi
changeset 3181 50d0fef791d5
parent 3151 8e5d383a58cb
child 3269 5d174cdf4d98
--- a/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Wed Mar 10 19:27:41 2021 +0100
+++ b/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Wed Mar 10 19:29:49 2021 +0100
@@ -37,7 +37,12 @@
         extra = newdata[u'extra']
         options = newdata[u'options']
 
-        if len(options) == 2 :
+        if len(options) == 1 :
+            action, = options
+            if action == "action_reset":
+                del Alarms[:]
+                AlarmIndex.clear()
+        elif len(options) == 2 :
             action, alarmid = options
             if action == "onClick[acknowledge]":
                 AlarmIndex[int(alarmid)][2] = "ack"