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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wish ,wishx and Tcl Tk

Status
Not open for further replies.

2001solu

Programmer
Jan 3, 2002
1
US
Please tell me what is wish and wishx.. Where can I find more details..

I have an old piece or code wich I need to modify..

Thanks
 
wish is the Tk shell. Usually it is installed as wish8.3 or wish83 or something like that where 8.3 is the version number. I don't know what wishx is but it sounds like either 'x=version number' or else wishx is a tk extention. Bob Rashkin
rrashkin@csc.com
 
As Bong said, wish is a standard Tcl interpreter that has built-in support for Tk, the extension for creating graphical user interfaces. When you install Tcl, you don't actually get an executable named "wish". Instead, the major/minor version numbers are appended to the end (for example, wish8.3 on Unix or wish83 on Windows). Most systems administrators then create a link or alias pointing wish to the most recent version of Tcl's wish that's installed.

On the other hand, wishx is a wish interpreter that's been extended to have built-in support for the TclX extension. TclX adds numerous useful features (and many features originally introduced in TclX eventually were added to the Tcl core), but the reason TclX is used most often these days is to get access to Unix system calls like fork(). These days, the use of wishx is deprecated. Instead, most people start a standard wish and then include near the beginning of their application the line:

Code:
package require Tclx

to dynamically load the TclX extension. But if your application is still using wishx, it might be using versions of Tcl and TclX that are so old that you can't dynamically load TclX with the package command.

To get started with Tcl/Tk, you might want to check out The Tcler's Wiki, a collaboratively edited collection of pages at (or equivalently, Another place to check would be the Tcl Developer's Xchange at although that site is starting to suffer a bit of link rot.

The "bible" for Tcl is Practical Programming in Tcl and Tk, 3rd ed. by Brent Welch, ISBN 0-13-022028-0, an immensely useful book which I highly recommend. However, a better way to learn Tcl from scratch is Teach Yourself Tcl/Tk in 24 Hours by Venkat V. S. Sastry and Lakshmi Sastry, ISBN 0672317494.

You can get an overview of TclX at The commands are also described in the O'Reilly book Tcl/Tk in a Nutshell, by Paul Raines and Jeff Trainer, ISBN 1-56592-433-9. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top