Program hangs when instructed to update the progress bar in any manner. Tried variations:
# in gui.py
self.variables['progressbar'].set(self.variables['progressbar'].get() + 1) # desirable
self.bar['value'] += 1
self.bar.step()
# in coordinator.py
self.gui.variables['progressbar'].set(self.gui.variables['progressbar'].get() + 1)
self.gui.bar['value'] += 1
self.bar.step()
Also after each above attempt I added bar.update_idletasks() and bar.update() with no progress.
Interestingly, this only seems to occur on the first update. Running with Spyder4, I can achieve a complete batch send with the following procedure:
- Start the program, enter configuration values, click Send
- Wait for the first email to send
- After the first email sends, program hangs.
- Send a
KeyboardInterrupt via either CTRL+C or with iPython's stop button
- Program throws an exception (below) and continues. The issue does not repeat for further progress bar updates.
KeyboardInterrupt exception:
Exception in Tkinter callback
Traceback (most recent call last):
File "c:\program files (x86)\python36\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "D:/Random Programming Shit/Python/EmailBot/src/coordinator.py", line 59, in wrapped
return cbfunc(self)
File "D:\Random Programming Shit\Python\EmailBot\src\gui_callbacks.py", line 69, in handle_send
coordinator.send()
File "D:/Random Programming Shit/Python/EmailBot/src/coordinator.py", line 83, in send
self.sender.run()
File "D:\Random Programming Shit\Python\EmailBot\src\sender.py", line 128, in run
if not self.workers:
KeyboardInterrupt
Program hangs when instructed to update the progress bar in any manner. Tried variations:
Also after each above attempt I added
bar.update_idletasks()andbar.update()with no progress.Interestingly, this only seems to occur on the first update. Running with Spyder4, I can achieve a complete batch send with the following procedure:
KeyboardInterruptvia eitherCTRL+Cor with iPython's stop buttonKeyboardInterrupt exception: