Two image in tkinter using PhotoImage Two image in tkinter using PhotoImage tkinter tkinter

Two image in tkinter using PhotoImage


First of all, like @AD WAN said, it is incorrect to have to instances of Tk(). Second of all, when you initiate the second image, you put it in the first one, win, instead of root.

This would be your code:

from tkinter import *win=Tk()win.title('PokerChamp')win.geometry('400x200')background_image = PhotoImage(file='loading.png')background_label = Label(win, image=background_image)background_label.place(x=0, y=0, relwidth=1, relheight=1)root=Toplevel()#root.config(bg='#1b800b')root.title('PokerChamp')image = PhotoImage(file='table.ppm')label = Label(root, image=image)label.place(relx=0, rely=0)

Hope this helps!