Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner 3

Status
Not open for further replies.

engreham

Technical User
Nov 2, 2011
2
EG
Hello everyone,
I am a beginner in Tcl/Tk language ,i have some questions:
1- how can i run a script by another solution than source?
2-is there a UNIX tcl/tk free download,i searched a lot with no hope?
3-what is the benefits of using wish than tcl?
4- what is the usage of tk when i use wish?

Respectfully,
Reham

 
i'm a windows user, so im not sure it is the same but:

you can double click on any .tcl file to run it.
wish is a tcl console that lets you use tk
tk is a tcl design package...where u can create and manipulate windows, frames, buttons...etc

 
First of all, Wish is the Tk shell for Tcl so you do need it for any apps that use Tk (i.e., widgets, GUI,...)

*nix OS's require that the first line of any script be:
#!/usr/bin/tclsh
or
#!/usr/bin/wish

or whatever the correct path to the Tcl binaries may be.

Also the file permissions must include "execute" for the user trying to execute the file (Tcl script).

>chmod 777 <file name>
will do it.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top