From 5646ff87867189063dce6601659eed05983da8bd Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 21 Sep 2018 15:18:46 -0400 Subject: [PATCH] Fixed user submitted bug in setting icon in FlexForm init --- PySimpleGUI.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 36a934f6..3cf4c842 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1827,9 +1827,7 @@ class FlexForm: self.Font = font if font else DEFAULT_FONT self.RadioDict = {} self.BorderDepth = border_depth - # self.WindowIcon = icon - # self.WindowIcon = icon if icon else icon_tempfile - self.WindowIcon = icon if not None else _my_windows.user_defined_icon + self.WindowIcon = icon if icon is not None else _my_windows.user_defined_icon self.AutoClose = auto_close self.NonBlocking = False self.TKroot = None