NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Tcl scripts with Tk library in TS. Can it be run?

Hi,

 

TS2014 SP1 has a Tcl step type example.

 

It is a great but, unfortunately it does not support Tk library. It only support plain text based tcl scripts.

 

Technically speaking, to make it working, the Tcl script (with Tk references) content has to be parsed against wish.exe not against tclsh.exe.

 

The source code (VS solution file  & others) for the tcl step type is attached to the TS distribution.

 

I'm just wondering how much work is needed to make the Tcl/Tk scripts working from the TS.

 

The Tcl/Tk script which I want to call looks like below:

 

label .l -width [string length "Hello, Tk world"] \
	-text "Hello, Tk world";
button .b -text "Exit" -command exit;
pack .l -padx 40 -pady 10;
pack .b -padx 40 -pady 10;
0 Kudos
Message 1 of 1
(3,306 Views)