I'm trying to download a JPEG file from a URL and display it on a tkinter GUI window
This is the code I am trying to use to download and display the JPEG:
picURL = "https://graph.facebook.com/" + ID + "/picture"
picBytes= urlopen(picURL).read()
picData = io.BytesIO(picBytes)
picPil = Image.open(picData)
picTk = ImageTk.PhotoImage(picPil)
label_9 = Label(image = picTK, bg = "blue").pack()
The problem is that the image isn't showing up. All I get is a blue box. How can i make it so the picture is shown?
Thanks
Im using python 3.3 on windows