I wouldn't do the test this way, because the toolips code (in 1.6.0)
included in projects uses the ::vTcl namespace. Some other widgets may use
the ::vTcl namespace for internal purposes.
I would rather write:
global vTcl
if {[info exists vTcl(sourcing)]} {
# the file is being run from vTcl
...
} else {
# run as stand alone
...
}
vTcl(sourcing) is an array element that is set when a file is being sourced
in vTcl.
CG
|---------+------------------------------------->
| | Eric Taylor |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | ceforge.net |
| | |
| | |
| | 02/05/2002 12:06 AM |
| | |
|---------+------------------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: [vtcl-user] images and ::vTcl
|
|
|
>------------------------------------------------------------------------------------------------------------------------------|
Using image gifs broke my test for whether we are loaded by
vtcl or running on our own. I have lots of code in my main that I don't
want vtcl
to run, so I use this test:
proc main.... {
if ![info exists ::vTcl] {
stuff run only when live, not edited by vtcl
}
}
Is there another way to do this?
thanks
eric
vtcl 1.5.2
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user