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

Use combobox for calibration file name

parent c8d885a0
No related branches found
No related tags found
No related merge requests found
......@@ -272,12 +272,30 @@
<horizontal_alignment>2</horizontal_alignment>
<vertical_alignment>1</vertical_alignment>
</widget>
<widget type="textentry" version="3.0.0">
<widget type="combo" version="2.0.0">
<name>CurveFileS</name>
<pv_name>$(DEVICE):CurveFileS</pv_name>
<x>126</x>
<y>300</y>
<width>150</width>
<height>20</height>
<background_color>
<color name="Write_Background" red="224" green="217" blue="202">
</color>
</background_color>
<actions>
<action type="write_pv">
<pv_name>$(CONTROLLER):CalibRereadCmd</pv_name>
<value>1</value>
<description>Reread calibration files list</description>
</action>
</actions>
<scripts>
<script file="fill_calib_files.py">
<pv_name>$(CONTROLLER):CalibFiles-RB</pv_name>
</script>
</scripts>
<items_from_pv>false</items_from_pv>
</widget>
<widget type="textupdate" version="2.0.0">
<name>CurveFile-RB</name>
......
from org.csstudio.display.builder.runtime.script import PVUtil
import java.util.ArrayList as ArrayList
items = PVUtil.getStringArray(pvs[0])
arraylist = ArrayList(len(items))
for item in items:
arraylist.add(item)
widget.setItems(arraylist)
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