`bash.sh` is a zenity wrapper script which creates the gui. `python.py` calls wget somewhere at the end.
In `bash.sh` there's `python.py` called and a zenity progress bar displayed, like this
Code: Select all
./python.py | zenity --progress --pulsate --auto-close
If I click "cancel" before the wget download begins, it is canceled and the `python.py` script exits, like this:
Code: Select all
Traceback (most recent call last):
File "python.py", line 41, in <module>
print(s.encode('utf-8')) IOError: [Errno 32] Broken pipe
What should I do, so that the "cancel" button stops the wget download?
Thanks