Ads

HOW TO ADD IMAGE IN PYTHON TURTLE GRAPHICS | INSERT IMAGE USING PYTHON TKINTER | HOW TO ADD MAIN WINDOW TITLE IN PYTHON TURTLE

 #___________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL __________

#......................... PYTHON PROGRAM TO ADD AND INSERT IMAGE  ....................




from tkinter import *

from PIL import ImageTk,Image

window =Tk()

# MAIN WINDOW TITLE 

window.title('COMPUTER SOFT SKILLS_ADD IMAGE')


#MAIN WINDOW SIZE

window.geometry("600x600")

# IMAGE ADDRESS AND LINK TO PYTHON WINDOW

img = ImageTk.PhotoImage(Image.open("D:\\python\\image\\gitar.jpg"))

label = Label (window ,image = img)

label.pack()

window.mainloop()


Post a Comment

0 Comments