diff --git a/purge-registres-deces-insee/gui_trouver_decedes.py b/purge-registres-deces-insee/gui_trouver_decedes.py index 69c716a..5832ae6 100644 --- a/purge-registres-deces-insee/gui_trouver_decedes.py +++ b/purge-registres-deces-insee/gui_trouver_decedes.py @@ -89,6 +89,7 @@ class MainApplication(tk.Frame): elif message.get('running', False): self.run = message['running'] elif message.get('set_max', False): + self.progressbar["value"] = 0 self.progressbar['maximum'] = message['set_max'] self.parent.after(100, self.watch) else: @@ -120,7 +121,7 @@ class Worker(Process): self.pipe.send({'text': text}) elif set_max: self.pipe.send({'set_max': set_max}) - elif done: + elif running: self.pipe.send({'running': running}) def run(self):