From 8ff3c80f23fc9fa5a65a25ee5d91884f26ac6d82 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sun, 19 May 2019 14:18:58 +0200 Subject: [PATCH] Fix default PySimpleGUI icon never used in CalendarButton --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 3851fe1f..37cfa4ac 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1639,7 +1639,7 @@ class Button(Element): if type(Window.user_defined_icon) is bytes: calendar_icon = tkinter.PhotoImage(data=Window.user_defined_icon) else: - calendar_icon = DEFAULT_BASE64_ICON + calendar_icon = tkinter.PhotoImage(data=DEFAULT_BASE64_ICON) try: root.tk.call('wm', 'iconphoto', root._w, calendar_icon) except: