Hi Ken
I do not quite get it: invoking die() as for killing my script (main program). I can't find any object method called die in LWP.
| [reply] |
LWP invokes the callback inside an eval; using die will be caught and translated into an "X-Died" header in the response object.
You will need to arrange for the "Cancel" button to set a flag that the callback then checks. Having the Tk callback handler directly die will abort the run through the event loop and may or may not cause problems. Tk is a very complex XS module, so it would be best to avoid throwing an exception "around the event loop" directly.
| [reply] [d/l] [select] |
| [reply] [d/l] |
| [reply] |