urlretrieve(URL, file_path, self.reporthook)
I use tkinter for Python 3 and want to abort downloading a file and close the application when user press close button.
urlretrieve(URL, file_path, self.reporthook)
I use tkinter for Python 3 and want to abort downloading a file and close the application when user press close button.
You should look into multiprocessing. May not be what it was intended to do, but it should be possible to kill off outside of the code thread.