Answers for "tkinter create_image according to other image"

5

how to add a image in tkinter

from tkinter import *
root=Tk()
img=PhotoImage(file='sunshine.jpg')
Label(root,image=img).pack()
root.mainloop()
Posted by: Guest on August-03-2020
2

how to place image in tkinter

import tkinter 
from PIL import Image, ImageTk

load= Image.open("/Users/omprakash/Desktop/Gmail-new-logo.jpg")
render = ImageTk.PhotoImage(load)
img = Label(root, image=render)
img.place(x=100, y=100)
Posted by: Guest on January-11-2021

Code answers related to "tkinter create_image according to other image"

Python Answers by Framework

Browse Popular Code Answers by Language