+ 1

Display an image in python

Is it possible to display an image in python? If yes, how?

8th Nov 2018, 1:28 AM
Vikram Harikrishnan
Vikram Harikrishnan - avatar
3 odpowiedzi
+ 9
Not in SoloLearn
8th Nov 2018, 1:51 AM
Flandre Scarlet
Flandre Scarlet - avatar
+ 5
You have to use a Module like TKinter.
8th Nov 2018, 7:05 AM
Sebastian Keßler
Sebastian Keßler - avatar
0
import tkinter from tkinter import* from PIL import ImageTk,Image root =Tk() im = ImageTk.PhotoImage(Image.open("your image.png or jpg or gif") l= Label(root,image=im) root.mainloop()
8th Mar 2020, 6:53 PM
Nicolas okiokpa
Nicolas okiokpa - avatar