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)