I'm trying to figure out how to allow users to upload images, I'm starting easy with something I know tkinter can handle with no coercion, gif files. I've figures a bit out, but I'm having issues getting the image to actually SHOW.
from tkinter import *
from tkinter.filedialog import askopenfilename
root=Tk()
def get_image():
file_name=askopenfilename(filetypes=[('GIF FILES', '*.gif')])
print(file_name)
the=PhotoImage(file=file_name)
show(the)
def show(imaj):
Show=Toplevel()
Show.grid()
the_image=Button(Show,image=imaj)
the_image.grid()
root.upbutn=Button(root,text='upload an image',command=get_image)
root.upbutn.grid()
root.grid()
root.mainloop()