mirror of
https://gitlab.psi.ch/pyqtacc/proscan.git
synced 2025-12-30 20:33:27 +01:00
check magnet I at PIF
This commit is contained in:
@@ -571,11 +571,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))
|
||||
|
||||
Reference in New Issue
Block a user