tests/svghmi/py_ext_0@py_ext/pyfile.xml
branchsvghmi
changeset 3181 50d0fef791d5
parent 3151 8e5d383a58cb
child 3269 5d174cdf4d98
equal deleted inserted replaced
3180:c059026d8626 3181:50d0fef791d5
    35         slider_position = newdata[u'position']
    35         slider_position = newdata[u'position']
    36         visible = newdata[u'visible']
    36         visible = newdata[u'visible']
    37         extra = newdata[u'extra']
    37         extra = newdata[u'extra']
    38         options = newdata[u'options']
    38         options = newdata[u'options']
    39 
    39 
    40         if len(options) == 2 :
    40         if len(options) == 1 :
       
    41             action, = options
       
    42             if action == "action_reset":
       
    43                 del Alarms[:]
       
    44                 AlarmIndex.clear()
       
    45         elif len(options) == 2 :
    41             action, alarmid = options
    46             action, alarmid = options
    42             if action == "onClick[acknowledge]":
    47             if action == "onClick[acknowledge]":
    43                 AlarmIndex[int(alarmid)][2] = "ack"
    48                 AlarmIndex[int(alarmid)][2] = "ack"
    44 
    49 
    45         answer = self.renderTable(range_feedback, slider_position, visible, extra)
    50         answer = self.renderTable(range_feedback, slider_position, visible, extra)