From 60034cd168c575ddb1fcf779e38c269ce14b085c Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 24 Aug 2018 23:32:12 -0400 Subject: [PATCH] Progress bar - decrement num windows if update fails (RISKY CHANGE) More battling over the number of open windows. Hopefully won't cause lots of problems! --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 0bc75dc5..ba25b271 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -764,7 +764,7 @@ class ProgressBar(Element): try: self.ParentForm.TKroot.update() except: - # _my_windows.Decrement() + _my_windows.Decrement() return False return True