Imported CSS files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from org.csstudio.opibuilder.scriptUtil import PVUtil
|
||||
from org.csstudio.swt.widgets.natives.SpreadSheetTable import ITableSelectionChangedListener
|
||||
from java.util import Arrays
|
||||
|
||||
table = widget.getTable()
|
||||
|
||||
class SelectionListener(ITableSelectionChangedListener):
|
||||
def selectionChanged(self, selection):
|
||||
for row in selection:
|
||||
par_name = row[1]
|
||||
par_io = row[4]
|
||||
pvs[1].setValue(par_name)
|
||||
pvs[2].setValue(par_io)
|
||||
|
||||
table.addSelectionChangedListener(SelectionListener())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user