diff --git a/guiheader.py b/guiheader.py index 81a70d8..3349047 100644 --- a/guiheader.py +++ b/guiheader.py @@ -570,13 +570,13 @@ class GUIHeader(QWidget): for key, pf in self.pframe_matrix["PRE-PIF"][3].items(): pf.setStyleSheet("background-color:{0};".format(color)) - amd2 = self.cafe.getCache("AMD2:SOL:2") + val_amd2 = self.cafe.getCache("AMD2:SOL:2") - if amd2 is not None and amd2 > 0.0: + if val_amd2 is not None and val_amd2 > 0.0: color = "green" else: color = self.pf_bgcolor() - + for i in range(5, 8): pf = self.pframe_matrix["O2"][5][i] pf.setStyleSheet("background-color:{0};".format(color))