Skip to content
Snippets Groups Projects
Commit d4d4a92c authored by Krisztián Löki's avatar Krisztián Löki
Browse files

Try to properly check RGA validity

parent f0adffcc
No related branches found
No related tags found
1 merge request!17RGA and cosmetic fixes
from org.csstudio.display.builder.runtime.script import PVUtil
from org.csstudio.display.builder.model.properties import NamedWidgetColor
from org.csstudio.display.builder.model.persist import WidgetColorService
color = WidgetColorService.getColor("INVALID")
try:
if PVUtil.getSeverity(pvs[0]) == 0 and PVUtil.getString(pvs[0]).startswith('"HAL RC RGA 101'):
color = WidgetColorService.getColor("Background")
except:
pass
widget.setPropertyValue('background_color', color)
......@@ -9,8 +9,8 @@
<width>133</width>
<height>70</height>
<scripts>
<script file="../common/isvalid.py" check_connections="false">
<pv_name>$(vacPREFIX):ValidR</pv_name>
<script file="isvalid.py" check_connections="false">
<pv_name>$(vacPREFIX):ID-I</pv_name>
</script>
</scripts>
<widget type="polyline" version="2.0.0">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment