Closedown

This commit is contained in:
boccioli_m
2015-06-05 10:31:41 +02:00
parent c8f002cbba
commit 6666ce1f75
2 changed files with 35 additions and 55 deletions

View File

@@ -59,6 +59,8 @@ public class TestingPanel extends Panel {
motorPanel.setDevice(motor);
}
//listen to script end of execution and get return value
@Override
protected void onExecutedFile(String fileName) {
try {
switch(fileName){
@@ -353,10 +355,7 @@ public class TestingPanel extends Panel {
args.put("relative", var1);
args.put("steps", var2);
run("power-supply", args);
Object ret = eval("ret");
//try to print the result
txtTestPSRes.setText(ret.toString());
//evalAsync("run('args', locals = {'relative':" + (var1 ? "True" :"False") + ", 'steps':" + var2 + "})");