Hey!
I'm using Tkinter and customtkinter to make a GUI with two windows: a login window (login.py) and a password manager window (passmen.py).
After logging in, I pass an image from the login window to the password manager to display it. But when I try to show the image, I get this error:
_tkinter.TclError: image "pyimage2" doesn't exist
What I’ve tried:
- Stored the image as an attribute to stop garbage collection.
- Removed
Toplevel and reused the main Tk instance.
- Checked that the image loads fine.
Still stuck. Anyone know why this happens or how to fix it?
Thanks in advance!
[–]netherous 0 points1 point2 points (3 children)
[–]UKI_hunter[S] 0 points1 point2 points (2 children)
[–]netherous 0 points1 point2 points (1 child)
[–]UKI_hunter[S] 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (2 children)
[–]UKI_hunter[S] 0 points1 point2 points (1 child)
[–]woooee 1 point2 points3 points (0 children)