mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
fixed the progress bar interderminate mode not being animated
This commit is contained in:
parent
c0915ae13e
commit
3ad596f8c6
1 changed files with 6 additions and 4 deletions
|
@ -495,12 +495,14 @@ class ProgressBar(ttk.LabelFrame):
|
|||
:return:
|
||||
"""
|
||||
if value:
|
||||
if self.progress_bar["mode"] == "indeterminate": self.progress_bar.stop()
|
||||
self.progress_bar.configure(mode="determinate")
|
||||
if self.progress_bar_step["mode"] == "indeterminate": self.progress_bar_step.stop()
|
||||
self.progress_bar_step.configure(mode="determinate")
|
||||
|
||||
else:
|
||||
if self.progress_bar["mode"] == "determinate": self.progress_bar.start(50)
|
||||
self.progress_bar.configure(mode="indeterminate")
|
||||
self.progress_bar_step.configure(mode="indeterminate", maximum=100)
|
||||
self.progress_bar_step.start(50)
|
||||
|
||||
self.progress_bar_step.update()
|
||||
|
||||
|
||||
# Combobox to select the pack
|
||||
|
|
Loading…
Reference in a new issue