I'm having a problem getting my VTCL applications to shut down properly.
I'm running XFree86 3.2 with Afterstep as the WM. If i chmod 700 the
file, then run it from an xterm (./file.tcl), it runs fine. But if I
close the window using the WM's titlebar, it just closes the window and
leaves the xterm still running the script. Is there a way to detect this
and adjust the shutdown sequence?
Also, if I create a button on the form with the command:
destroy .main
destroy .
exit
And then run it from an xterm, it closes all windows and exits the
program, but It doesn't return control to either the wm or the xterm
properly, as i always have to click on the titlebar of the xterm do get my
cursor back. I think it might no be freeing the mouse and keyboard
controls properly.
So, how do I do a proper shutdown of a Tk script?
Also ... when I use VTCL to create menu items, if I try and create a
checkbox with a label of "Save Backups?", it adds:
global Save Backups?
To my global variable section, which always causes problems ... Is this a
bug in vtcl?
| John Hoffmann
| http://utopia.compmore.net
| [EMAIL PROTECTED]
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).