As far as I can remember, I added the following lines to the init-proc to
make sure the Tktable package is loaded when runnung standalone. If ::vTcl
exists, we're under vTcl, and the package is already loaded.

proc init {argc argv} {
  if ![info exists ::vTcl] {
    package require Tktable
  }
}

Just a note: I see in your code that you use tkTable 2.6. I used version
2.4. There might perhaps be some enhancements in tkTable that should be
added to lib_table.tcl to achieve full functionality...

>***A little problem: in vtcl, it all seems to work, but when running the
>saved file, I get the message that the command "table" is unknown.
>After I added the following to my .tcl-file, it worked:
>==============================
># provoke name search
>catch {package require foobar}
>set names [package names]
>
># check if Tktable is available
>if { [lsearch -exact $names Tktable] != -1} {
>
>package require Tktable 2.6
>#namespace import ::table::table }
>===============================
>Is there something I have to change in the file lib_table.tcl to avoid this?
>Or is there something else I do wrong?
>
>In any case, I feel that this thing is going to help me A LOT!!
>
>Thanks a lot,
>
>Stef.
>

--------------------------------------------------------------------------
Gergely Megyeri  --  Lehrstuhl fuer Informationstechnik im Maschinenwesen
      itm        --  Technische Universitaet Muenchen
--------------------------------------------------------------------------
[EMAIL PROTECTED]  *  Tel: +49 89 289 16442  *  http://www.itm.tum.de/~gm
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to