• Tcl Wish shell

    From snosniv@21:1/5 to All on Sat Nov 5 05:36:32 2022
    I have a Tcl script which I run from a batch file (win 10), with just:
    tclsh (path)\myfile.tcl

    This works fine, but I also have a GUI version of the script so users can enter certain data, but I can't figure out how to open this version into a Wish shell?

    Any pointers gratefully received. (Couldn't find anything appropriate with a google search).

    Kev P.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From fr@21:1/5 to snosniv on Sat Nov 5 05:47:49 2022
    On Saturday, November 5, 2022 at 1:36:35 PM UTC+1, snosniv wrote:
    I have a Tcl script which I run from a batch file (win 10), with just:
    tclsh (path)\myfile.tcl

    This works fine, but I also have a GUI version of the script so users can enter certain data, but I can't figure out how to open this version into a Wish shell?

    Any pointers gratefully received. (Couldn't find anything appropriate with a google search).

    Kev P.
    either use wish.exe instead of tclsh.exe
    or load the gui part in your existing script with "package require Tk"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to All on Sat Nov 5 06:07:59 2022
    On Saturday, 5 November 2022 at 12:47:51 UTC, fr wrote:
    On Saturday, November 5, 2022 at 1:36:35 PM UTC+1, snosniv wrote:
    I have a Tcl script which I run from a batch file (win 10), with just: tclsh (path)\myfile.tcl

    This works fine, but I also have a GUI version of the script so users can enter certain data, but I can't figure out how to open this version into a Wish shell?

    Any pointers gratefully received. (Couldn't find anything appropriate with a google search).

    Kev P.
    either use wish.exe instead of tclsh.exe
    or load the gui part in your existing script with "package require Tk"

    Ah, that's what it was, I thought I'd added the package, more concentration needed!
    Thanks fr.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)