Imported CSS files

This commit is contained in:
Sakbe
2019-10-21 16:02:55 +01:00
parent 22146b8413
commit 87401e8c95
365 changed files with 1092613 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
from org.csstudio.opibuilder.scriptUtil import PVUtil
from decimal import Decimal
val = PVUtil.getDouble(pvs[0])
if val == 1:
val = 0
pvs[0].setValue(val)
filename = "/home/opertok/CSS-Workspaces/sys-mng-opi/CSS/gams"+display.getWidget("FileNameTextInput").getPropertyValue("text")+".cfg"
myfile = open(filename, 'w')
myfile.write('+')
myfile.write(display.getWidget("FileNameTextInput").getPropertyValue("text"))
myfile.write(' = {\n')
myfile.write(display.getWidget("contentInputLabel").getPropertyValue("text"))
myfile.write('\n')
myfile.write(display.getWidget("contentOutputLabel").getPropertyValue("text"))
myfile.write('\n')
myfile.write('}\n')
myfile.close()