From 0fbee9dde69d8fdf02e5cc086d3e93f9757e813e Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 15 Jul 2019 18:05:27 -0400 Subject: [PATCH] Fix bug that crashes code if 2 keys are the same. --- PySimpleGUIQt/PySimpleGUIQt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 9504ebbc..b52ea73c 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -3213,6 +3213,8 @@ class Window: self.BackgroundImage = background_image self.XFound = False self.DisableMinimize = disable_minimize + self.UniqueKeyCounter = 0 + if layout is not None: self.Layout(layout)