diff --git a/gooey/_tmp/example_progress_bar_2.py b/gooey/_tmp/example_progress_bar_2.py index 776f8f2..6ead7e2 100644 --- a/gooey/_tmp/example_progress_bar_2.py +++ b/gooey/_tmp/example_progress_bar_2.py @@ -10,7 +10,7 @@ from gooey import Gooey, GooeyParser @Gooey(progress_regex=r"^progress: (\d+)/(\d+)$", progress_expr="x[0] / x[1] * 100", - disable_progress_bar_animation=False) + disable_progress_bar_animation=True) def main(): parser = GooeyParser(prog="example_progress_bar_2") parser.add_argument("steps", type=int, default=15) diff --git a/gooey/_tmp/example_progress_bar_4.py b/gooey/_tmp/example_progress_bar_4.py index 7cd2792..fca9b99 100644 --- a/gooey/_tmp/example_progress_bar_4.py +++ b/gooey/_tmp/example_progress_bar_4.py @@ -9,7 +9,7 @@ from gooey import Gooey, GooeyParser @Gooey(progress_regex=r"^progress: (-?\d+)%$", - disable_progress_bar_animation=False) + disable_progress_bar_animation=True) def main(): parser = GooeyParser(prog="example_progress_bar_1") _ = parser.parse_args(sys.argv[1:]) diff --git a/gooey/gui/windows/base_window.py b/gooey/gui/windows/base_window.py index b03fec7..1c05fb2 100644 --- a/gooey/gui/windows/base_window.py +++ b/gooey/gui/windows/base_window.py @@ -161,7 +161,7 @@ class BaseWindow(wx.Frame): if pb.GetValue() != value: # Windows 7 progress bar animation hack # http://stackoverflow.com/questions/5332616/disabling-net-progressbar-animation-when-changing-value - if not self.build_spec["disable_progress_bar_animation"] \ + if self.build_spec["disable_progress_bar_animation"] \ and sys.platform.startswith("win"): if pb.GetRange() == value: pb.SetValue(value)