External Exam Download Resources Web Applications Games Recycle Bin

Images URL

get image from url.py

#--initialise:
from tkinter import *
from urllib.request import urlopen
import base64

window = Tk()

#--variables and widgets:
image_url = "https://digisoln.com/resources/atari.gif"
image_byt = urlopen(image_url).read()
image_b64 = base64.encodestring(image_byt)
mypic = PhotoImage(data = image_b64)
lblPicture = Label(image = mypic)

#--pack:
lblPicture.pack()

#--run:
window.mainloop()
The image used in this script is atari.gif:
atari.gif