From ce669b1ba02e8f8e35c9f92d69340b46f53c7c27 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Thu, 3 Jan 2019 09:22:28 +0100 Subject: [PATCH] Allow proper propagation of user defined icon in subwindows --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 01542bfd..65195023 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -3412,7 +3412,7 @@ class Window: self.Font = font if font else DEFAULT_FONT self.RadioDict = {} self.BorderDepth = border_depth - self.WindowIcon = icon if icon is not None else Window.user_defined_icon + self.WindowIcon = self.WindowIcon = Window.user_defined_icon if Window.user_defined_icon is not None else icon if icon is not None else DEFAULT_WINDOW_ICON self.AutoClose = auto_close self.NonBlocking = False self.TKroot = None