#163 Make vTcl launchable with tclsh

open
nobody
None
5
2014-03-01
2007-11-20
Strykaas
No

- Rationale :

I want to be able to double click on vtcl.tcl file to launch vtcl (.tcl files are associated to tclsh on my installation). I also want to have access to "puts" output invoked inside vTcl to help debugging.

- Solution :

Move the tk specific instructions after the "package require tk" instruction :

In file vtcl/vtcl.tcl :

## for Tcl/Tk 8.4
if {![llength [info commands tkTextInsert]]} {
::tk::unsupported::ExposePrivateCommand tkTextInsert
}

Note : My soon to be submitted patch will hold this fix.

Discussion