tcl/tk different on linux and cygwin?
Hello,
here i have a small program, which works well under cygwin, but wont under linux
--snip
#!/bin/sh
# \
exec wish "$0" "$@"
bind . <Destroy> {
tk_messageBox -type yesno -title {Does it work?} -message {Do you see this window?} -icon question
}
--snap
How it should work: When i push the close button in the upper-right-corner of the window, a message box should appear.
I use the actual cygwin packets under win xp and suse 9.0.
My question: Why will this code refuse to work under linux?
Or should i ask the other way round:
Is it supposed to work? When it comes to destroing the windows the application may be on the last breath and can't initiate a new window. Has it to do with windows/linux handling issues?
And is there a shure way of asking a user if he wants to save unsaved data when he clicks the close button?
Thanks in advance
Stefan
|