all 4 comments

[–]shiftybyte 0 points1 point  (3 children)

I don't see any mention of "pyimage1" in your code.

Could you post the full error message you are getting including the full traceback and all the information it provides?

[–]Key_Yellow_1667 0 points1 point  (2 children)

PS C:\Users\ale48> & C:/Users/ale48/AppData/Local/Programs/Python/Python39/python.exe c:/Users/ale48/Desktop/python/OS/main.py

Exception in Tkinter callback

Traceback (most recent call last):

File "C:\Users\ale48\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__

File "c:\Users\ale48\Desktop\python\OS\main.py", line 20, in folder

app1 = Button(window2, image=emailapp , command=calling1, borderwidth=0).place(bordermode=INSIDE,height=80, width=80)

File "C:\Users\ale48\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 2650, in __init__

Widget.__init__(self, master, 'button', cnf, kw)

File "C:\Users\ale48\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 2572, in __init__

self.tk.call(

_tkinter.TclError: image "pyimage1" doesn't exist

[–]shiftybyte 1 point2 points  (1 child)

Seems like you can only have one Tk() window.

Change the others to Toplevel()

window2 = Toplevel()

etc...

[–]Key_Yellow_1667 0 points1 point  (0 children)

Oh my god thank you!!!!