Closedown
This commit is contained in:
@@ -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 + "})");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user