Mettre la barre de progression à zéro lorsqu'on donne la valeur max.
This commit is contained in:
parent
87093bc92c
commit
9febc4cc55
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user