On Wed, May 01, 2002 at 05:25:57AM +0900, Craig Files wrote:
> Thanks,  I have been playing with this all day and have made some 
> discoveries, but I still need some help.
> 
> The $! gives the error found during the Tk call 
> (for example, wrong # args: should be "set varName ?newValue?")
> But, I also want to report the current line number and stack
> trace of the tcl error.  (To be more exact, I want the output
> to look exactly like the error output when running tclsh.)

Don't output $! then, but access the tcl variable errorInfo.
It contains the traceback, as well as its heading is the
same message as the $!. Dunno, but there should be a way
to access tcl variables via Tk.something(var) ?

-Martin