From e15335546af78f92f87fb0f3a72ec7ebc329be5d Mon Sep 17 00:00:00 2001 From: Hammad Ahmad Date: Thu, 28 Dec 2017 16:37:13 +0500 Subject: [PATCH] fix ImageTk, loading.... --- weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.py b/weather.py index fc1178d..c54e6de 100644 --- a/weather.py +++ b/weather.py @@ -262,7 +262,7 @@ def show(): root = Tk() root.wm_title("Sunshine") if sp == 'linux' or sp == 'linux2' or sp == 'darwin': - img = PhotoImage(file='sun.png') + img = ImageTk.PhotoImage(Image.open('sun.png')) root.tk.call('wm', 'iconphoto', root._w, img) else: root.iconbitmap(default='sun.ico')