bajuwa / ComicCompiler

Scripts that help combine/splice webtoon images into a smaller collection of pages
GNU General Public License v3.0
15 stars 5 forks source link

Add an option to cancel the currently running compilation #72

Open bajuwa opened 4 years ago

bajuwa commented 4 years ago

After hitting 'run', replace the word 'run' with 'cancel' and have it interrupt the scripts.

bajuwa commented 4 years ago

This is turning out to be non-trivial as python cannot kill the threads it creates, and when trying to use processes the 'pickle' package it depends on does not work with the current implementation.

bajuwa commented 4 years ago

consider triggering the script via shell instead via Popen which has Popen.kill()

nvm, the comgui.exe won't have access to a script to trigger via popen