I have a window in Tkinter and there is a button on that window. when I click the button, I created another window(smaller, because this is like a dialog box).
I put a label in that dialog box,eg,"Save?" and then I added a picture just below the label.
The problem is ..the picture is not appearing and only a white box on the pink window is appearing.
why is this so?
This is the code:
dialog_wnd=Tk()
dialog_wnd.title("Email")
dialog_wnd.geometry("400x100")
dialog_wnd.configure(bg="pink")
label_dialog=Label(dialog_wnd,text="Save?",fg="purple",bg="pink")
label_dialog.pack()
label_dialog.place(x=120,y=3)
#putting a picture in dialog box
dialog_pic=ImageTk.PhotoImage(Image.open("pic.jpeg"))
dialog_pic_label=Label(dialog_wnd,image=dialog_pic)
dialog_pic_label.pack()
dialog_pic_label.place(x=200,y=8)