>> I tried pointing VTCL to the Wish included in ActiveTCL but VCTL then

>> complains about the BWidget libraries being different.  VCTL want 
>> 1.3.1 and ActiveTCL comes with 1.7.

>What version of vtcl are you using?  It appears to me that the sf.net
site >has, as its latest release, version 1.6.0 .  Is that what you are
using?

Yes, I'm using VTCL 1.6.0.  I tried putting VTCL in my path first which
had no effect.  I wound up 'reinstalling' (OK, unpacking really) VTCL
again and pointing it to the wish in ActiveTCL and it works now.

>> Does Wish somehow reference
>> a particular version or instance of TCL/TK?

>No, for the time being, each Tk release typically includes a wish
>interpreter for that version.

>> If so how do I point a
>> particular Wish to a particular version of TCL/TK?

>Each wish is directly associated with a version of tcl and tk. You
don't >need to do anything about it.

So wish and tclsh are created by way of compiling the TCL and TK
sources?  So when one exuecute their .tcl program, the first few lines
tells the OS to use wish as the interprter and then the TCL code is
interpreted by wish?

So wish must parse the .tcl file and pass arguments to and from the
appropriate TCL function(s) which are part of the library (the C code,
not to be confused with the widget libraries which are written in
TCL/TK) of the version of TCL/TK that belongs to that wish?

So then the extensibility of this framework would be that one could
extend wish to interpret their own library (the C code type again).  The
new C code would be added to TCL or TK?  (there has to a better way,
referring to the binary code "C code" of TCL/TK as libraries and the
actual TCL/TK script libraries, what's the convention?)

Thanks for your help!

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry W.
Virden
Sent: Friday, April 30, 2004 10:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [vtcl-user] Upgrading TCL/TK

From: "Birt, Jeffrey" <[EMAIL PROTECTED]>

> I'm trying to figure out how to upgrade TCL/TK.

This is a good goal.  Sometimes, however, upgrading requires one to 
make changes to the application.

> When I use the System
> Inspector in VTCL it tells me I'm running V8.3 of both TCL and TK.

Okay.

> I downloaded the binary files from ActiveState (8.4.6) which they
package
> as Active TCL.  It seems to include a bunch of different libraries.

ActiveTcl is what the community calls a "Batteries Included"
distribution.
That is to say, it includes the base language, Tcl, along with a number
of commonly used add-in functions/modules/extensions.

> I tried pointing VTCL to the Wish included in ActiveTCL but VCTL then
> complains about the BWidget libraries being different.  VCTL want
1.3.1
> and ActiveTCL comes with 1.7.

What version of vtcl are you using?  It appears to me that the sf.net
site
has, as its latest release, version 1.6.0 .  Is that what you are
using?


> This seems somewhat confusing to me as to what TCL, TK and Wish
actually
> are.  This is what I think I understand so far:
> 
> TCL is a scripting language
        Tcl is the name of the language implemented by the libtcl C
code.

> TK is a graphical 'extension' to TCL
        Tk is the name associated with libtk C code - which implements
an
        additional set of Tcl functions primarily associated with the
        creation of graphical display behavior.
        BWidgets is the name associated with a set of functions,
        written in Tcl/Tk, designed to make it easier to program more
        sophisticated Tcl/Tk applications by providing a set of
        pre-programmed 'megawidgets' (more complex graphical items
        made of combining the existing widgets plus some extra code).
> Wish is a TCL interpreter?

        To execute code written in Tcl, one needs to some how interpret
        that source code.  Two very common ways of doing that is making
        use of some programs created when one installs Tcl and Tk.
        When you install the Tcl libraries, you get a stand alone
        program called tclsh .  When you install the Tk add on
libraries,
        you typically get a stand alone program called wish.
        These binary programs are designed to be very crude wrappers
        around the libraries - basically taking a command line argument
        that represents a file name to read and interpret.


> So then what am I trying to upgrade to get TCL/TK 8.4.6?

At a minimum, you will need to update the tcl and tk libraries.

> The TCL
> libraries (I don't think this makes sense)?

It makes great sense.

> Does Wish somehow reference
> a particular version or instance of TCL/TK?

No, for the time being, each Tk release typically includes a wish
interpreter
for that version.

> If so how do I point a
> particular Wish to a particular version of TCL/TK?

Each wish is directly associated with a version of tcl and tk.
You don't need to do anything about it.

As for the error you are getting about BWidgets, I am a bit
confused about that - I just downloaded the latest vtcl
and I don't see that that error when I point to my 
version of ActiveTcl.  I do get an error about not
finding Tix, but that's fine.

The error means that some how something in your vtcl
environment - perhaps something you have saved in a preference
file - is referencing a really old version of BWidgets.

Anyone else here on the list have a tip for how this
user can solve this problem?
-- 
Tcl - The glue of a new generation.  <URL: http://wiki.tcl.tk/ >
Larry W. Virden <mailto:[EMAIL PROTECTED]> <URL:
http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting
should 
be construed as representing my employer's opinions.
-><-


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.

Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to