From 9febc4cc55b16f37d36833dc0d43ec86ee7a738b Mon Sep 17 00:00:00 2001 From: Sdj GeeK Date: Tue, 28 Jul 2020 16:51:42 +0200 Subject: [PATCH] =?UTF-8?q?Mettre=20la=20barre=20de=20progression=20=C3=A0?= =?UTF-8?q?=20z=C3=A9ro=20lorsqu'on=20donne=20la=20valeur=20max.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- purge-registres-deces-insee/gui_trouver_decedes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):