Re: How do I access ICTL on my WINDOWS 2000 box?





On Mon, 28 Nov 2005, ruffy wrote:

> Hi friends,
>
> I got tcl/tk 8.4.9 working ok on my WIN2000 box.
> I've been learning tcl/tk and now want to give ITCL a go.
> What do I add to my tcl scripts to get it to recognize my class
> definitions?
>
> To learn tcl/tk, I've been "sourcing" my created files.
> To now go ahead with ITCL, is it just a matter of adding a "package
> require" command
> - or is it something more complicated?
>

If you are using a binary distribution including the
itcl package (like the excellent! ActiveState one)
you just have to add in your files the following line:

package require Itcl

All itcl commands are in the itcl namespace, so all commands
should be prepended with itcl::
ex: itcl::class, itcl::body, etc ...

> I notice I have the following directory in my tcl library
> C:\Tcl\lib\itcl3.3
>
> Much obliged, thank you.
>
>

------------------------------
David Bariod
For email replace spam by tel
.



Relevant Pages