I’m writing a package (script-runner) which run scripts for the user. When the output window is closed, I want to terminate the script. What is the best way to achieve this?
My view is a subclass of
ScrollView but I’m not sure how or what event I should be using to terminate the script if the window is closed.
Does anyone have any suggestions?