def btn_alarm_check_clear_f(id_, btn):
    print(dType.GetAlarmsState(api, id_))
    #TODO 1st: check AlarmsState, mark color btn, 2nd press if marked red - clear
    #btn.setStyleSheet("background-color: #00ff00")
    dType.ClearAllAlarmsState(api, id_)

    print("after clear", dType.GetAlarmsState(api, id_))
예제 #2
0
 def getAlarm(self):
     return dType.GetAlarmsState(self.api)