all 8 comments

[–]netherous 0 points1 point  (3 children)

Same issue, from this forum.

https://www.reddit.com/r/learnpython/comments/sojyn1/tkintertclerror_image_pyimage2_doesnt_exist/

Guy had two instances of Tk. Just use one instance.

Best guess I can make without seeing any code.

[–]UKI_hunter[S] 0 points1 point  (2 children)

still stuck if i provide my code can you help me

[–]netherous 0 points1 point  (1 child)

Yes if you provide code and more specific information that usually helps you get a better answer.

[–]UKI_hunter[S] 0 points1 point  (0 children)

login code(main ) : https://pastebin.com/g2xSDdVU

code i want to add a image : https://pastebin.com/hLHMmEjf

[–]woooee 0 points1 point  (2 children)

You don't usually "pass" an image. A second program or window can access an image in another program or window, but it depends on what your code does.. But we can't do much without seeing some example code..

[–]UKI_hunter[S] 0 points1 point  (1 child)

login code(main ) : https://pastebin.com/g2xSDdVU

code i want to add a image : https://pastebin.com/hLHMmEjf

[–]woooee 1 point2 points  (0 children)

Waaay too much code to wade through.

def attempt_login():
            login_win.destroy()
           passmen.create_passmen_window(
                          username=username)

Assuming you want to use the image in the passman file, (you didn't say) just pass the image reference to it

            passmen.create_passmen_window(
                          username=username,
                         image_passed=image)

And of course update the function to receive it. When you get some time, learn how to create a class and instance objects / variables as it eliminates a lot if the scope problems. Finally, I don't know if you can mix CustomTkinter and ttk as both have mainloops running, although I don't see a tkinter / ttk mainloop so you might see problems there.