From: Helmut Giese on
Welcome,
>I hope i am in the right place
yes
>i only have 0/10 knowledge in tcl/tk
this will change shortly

>Questions:
>#. am i on the right place (group) ? if, yes
see above
>#. where to download tcl/tk?
the best place is www.activestate.com - you get Tcl with lots of
useful packages (== libraries) included
>#. where should i extract downloaded files to?
just run the installer (Windows: the .exe you downloaded) and tell it
where to install Tcl.
Personal recommendation: Do _not_ install it under c:\programm files
>#. how do i configure?
On Windows you don't need to, on Linux I don't know.
>#. where do i write my 'Hello world' program?
I heartily recommend tkcon.tcl (you find it in Tcl's bin directory).
Create a link to it and use it run ('source') your Tcl scripts.
>#. how should i write my 'Hello world' program?
Just use the editor of your choice.
Or, for interactively trying things out: tkcon.tcl
>#. is there any other thing i should know/study about tcl/tk?
Well, there are one or two things you will need to learn besides
puts "hello world"
There are many good tutorials. Go to
http://wiki.tcl.tk/20796
for a start.
>
>Direct me.............
HTH
Helmut Giese
From: RM3sh on
On Jan 6, 1:15 am, Helmut Giese <hgi...(a)ratiosoft.com> wrote:
> Welcome,>I hope i am in the right place
> yes
> >i only have 0/10 knowledge in tcl/tk
>
> this will change shortly
>
> >Questions:
> >#. am i on the right place (group) ? if, yes
> see above
> >#. where to download tcl/tk?
>
> the best place iswww.activestate.com- you get Tcl with lots of
> useful packages (== libraries) included>#. where should i extract downloaded files to?
>
> just run the installer (Windows: the .exe you downloaded) and tell it
> where to install Tcl.
> Personal recommendation: Do _not_ install it under c:\programm files>#. how do i configure?
>
> On Windows you don't need to, on Linux I don't know.>#. where do i write my 'Hello world' program?
>
> I heartily recommend tkcon.tcl (you find it in Tcl's bin directory).
> Create a link to it and use it run ('source') your Tcl scripts.>#. how should i write my 'Hello world' program?
>
> Just use the editor of your choice.
> Or, for interactively trying things out: tkcon.tcl>#. is there any other thing i should know/study about tcl/tk?
>
> Well, there are one or two things you will need to learn besides
>         puts "hello world"
> There are many good tutorials. Go to
>        http://wiki.tcl.tk/20796
> for a start.
>
> >Direct me.............
>
> HTH
> Helmut Giese

Hi Group

Those replies helped me a lot, many thanks

Here where i am

* I installed tcl/tk as u have instructed and worked properly.
* I typed my first program in "tkcon.tcl". Ran well.

Further doubts, don't mind if i am repeating the questions:

=> Now, i have written the same program in a file and saved it as
"hello.tcl"
=> Where should i save the file. Is there any restriction that file
have to be saved in a particular location. if not, how do i run a file
saved in a random location 'For Instance: Desktop'
FYI:I have saved the "hello.tcl" file in the location "C:\Tcl\bin".
=> And, where should i type the command "tclsh hello.tcl". FYI:I have
tried typing the "tclsh hello.tcl" command in "tkcon.tcl" windows and
it throws error.

ill disturb u guys later ;)

Thanks
RM3sh

From: Arjen Markus on
On 7 jan, 07:08, RM3sh <ramesh1...(a)gmail.com> wrote:
> Here where i am
>
> * I installed tcl/tk as u have instructed and worked properly.
> * I typed my first program in "tkcon.tcl". Ran well.
>
> Further doubts, don't mind if i am repeating the questions:
>
> => Now, i have written the same program in a file and saved it as
> "hello.tcl"
> => Where should i save the file. Is there any restriction that file
> have to be saved in a particular location. if not, how do i run a file
> saved in a random location 'For Instance: Desktop'
> FYI:I have saved the "hello.tcl" file in the location "C:\Tcl\bin".

You can save it anywhere you like. I would advise you however
not to put them in that location: it "pollutes" your installation.

> => And, where should i type the command "tclsh hello.tcl". FYI:I have
> tried typing the "tclsh hello.tcl" command in "tkcon.tcl" windows and
> it throws error.
>

If you are in an interactive shell, like tchsh, wish or tkcon, then
you should use the source command:

% source hello.tcl

If you start the shell, you can give it a file name as an argument and
it will automatically "source" the file.

Regards,

Arjen
From: Helmut Giese on
Hi,
well, everybody has his/her own way of organizing things, but (as
Arjen already mentioned) don't put your stuff into Tcl's installation.

To be able to invoke tkcon.tcl from everywhere I would suggest:
- Create a directory c:\bat
- Create a file tkcon.bat containing the line
<path to Tcl's bin dir>\wishXY.exe <path to Tcl's bin dir>\tkcon.tcl
%1 %2 %3 %4 %5 %6 %7 %8 %9
(the above should all be on one line)
Note: In Tcl's bin directory look up the correct name of 'wish' and
adapt the above line.
- Add this directory to your path (if you don't know how to do this,
come back)
- Log off, log on again: Now your PATH is updated.

From now on you can call tkcon from everywhere.

Change to Tcl's bin dir once more. If there doesn't exist a
'tclsh.exe' (wish.exe) copy tclshXY.exe to tclsh.exe (same for
wishXY.exe).
This way you can call Tcl either as tclshXY or tclsh.

For organizing your work you might do something like this:
- Create a directory c:\proj
- Create a sub-directory c:\proj\GetRich
- In this last directory you put all (Tcl and other) files which will
help you complete this project - at least with the setup from above
you will be able to activate tkcon as well as tclsh or wish from this
directory.
- Once done, you start another project - say in c:\proj\GetFamous
- Now it may happen that you could re-use some of the Tcl files you
used to become rich (say formula1.tcl). In this case you would use
(from within the 'GetFamous' dir)
source "../GetRich/formula1.tcl"
(note the '/' - never use '\' in paths from within Tcl scripts).

Hm, looks like I am in narrative mood today.
Well, HTH and good luck
Helmut Giese
From: Gerald W. Lester on
RM3sh wrote:
> ...
> Here where i am
>
> * I installed tcl/tk as u have instructed and worked properly.
> * I typed my first program in "tkcon.tcl". Ran well.
>
> Further doubts, don't mind if i am repeating the questions:
>
> => Now, i have written the same program in a file and saved it as
> "hello.tcl"
> => Where should i save the file. Is there any restriction that file
> have to be saved in a particular location. if not, how do i run a file
> saved in a random location 'For Instance: Desktop'
> FYI:I have saved the "hello.tcl" file in the location "C:\Tcl\bin".
> => And, where should i type the command "tclsh hello.tcl". FYI:I have
> tried typing the "tclsh hello.tcl" command in "tkcon.tcl" windows and
> it throws error.

On windows (which you seem to be using):
If your program uses Tk, then just double click on the hello.tcl.
If your program just uses Tcl, then type: tclsh hello.tcl

Note -- in the second case you can give a full path name to the hello.tcl file.

--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+