I want to put an image in a window above the buttons.
but the window is blank where the canvas is supposed to be.?
but the window is blank where the canvas is supposed to be.?
from tkinter import * from PIL import ImageTk,Image root = Tk() root.geometry("480x480") root.title("planets") label =Label(root , text = "what planet would you like to know about?") label.grid(row =15 , column = 1) canvas = Canvas(root , width = 200 , height = 200) canvas.grid(row = 10 , column = 3 ) photo = PhotoImage('gif.gif') canvas.create_image(0,0 , anchor = NW, image = photo) root.mainloop()