Answers for "What type of library we have to import to add JPG Image in Tkinter Tkinter.Image import Image Tkinter.PhotoImage from Tkinter import PhotoImage"

0

image in tkinter

import tkinter as tk
window = tk()
canvas = Canvas(window, width=300, height=300)
image = PhotoImage('path')
canvas.create_image(height=40, width=40, img=image)
Posted by: Guest on February-28-2021

Code answers related to "What type of library we have to import to add JPG Image in Tkinter Tkinter.Image import Image Tkinter.PhotoImage from Tkinter import PhotoImage"

Python Answers by Framework

Browse Popular Code Answers by Language