0

The following code is apart of a much more larger programme.

    global login_success_screen
    login_success_screen = Toplevel(log_sc)
    login_success_screen.title("Welcome to Said Holiday Reservations")
    login_success_screen.geometry("1500x800")
    label_welcome=Label(login_success_screen,text="Login was a success, have fun booking :D",font=("Arial",20,)).pack()
    label_available=Label(login_success_screen, text="List of Available rooms",font=("Verdana 16 underline")).pack()
    label_list=Label(login_success_screen,text="Room 3\nRoom4\nRoom 9\nRoom12\nRoom19,\nRoom23,\nRoom32\nRoom45\nRoom69\nRoom78\nRoom109",font=("Verdana 12 "))
    label_list.place(x=1, y=159)
    button_cancel=Button(login_success_screen, text="Cancel Booking Process", command=delete_login_success)
    button_cancel.place(x=750, y=759)
    room_one_img = Tk.PhotoImage(file="C:/Users/Sabdu/Downloads/Rooms/room_one.jpg")
    label_img=Label(login_success_screen,image=room_one_img)
    label_img.pack()

I don't understand why the img doesn't show and have been extremely stuck:(. Below is the link for what does show when the code is run.

P.S- My first time using stackoverflow :)

https://i.stack.imgur.com/bbtMW.png

Heavenl
  • 1
  • 1
  • Is the posted code inside a function? If yes, it is the same issue as this [question](https://stackoverflow.com/questions/16424091/why-does-tkinter-image-not-show-up-if-created-in-a-function). – acw1668 Mar 09 '22 at 15:40

0 Answers0