I googlet a lot and made some adaptions to my code which still didn't fix the problem.
My Code:
photo = PhotoImage(file="D:/AE theoretische Neuropsychologie/image.gif")
w = Label(app, image=photo)
w.photo = photo
w.pack()
Gives me the following Error (-tracebacks)
Traceback (most recent call last):File "", line 1, in
File "C:\Users\Asus\Anaconda2\lib\site->packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile execfile(filename, namespace) File "C:\Users\Asus\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc) File "D:/AE theoretische Neuropsychologie/PythonReps/vCGPDM/Segmentation/extremePointsMotion.py", line 45, in w = Label(app, image=photo) File "C:\Users\Asus\Anaconda2\lib\lib-tk\Tkinter.py", line 2591, in init Widget.init(self, master, 'label', cnf, kw) File "C:\Users\Asus\Anaconda2\lib\lib-tk\Tkinter.py", line 2090, in init (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError: image "pyimage8" doesn't exist
[Things I checked]
https://www.daniweb.com/programming/software-development/threads/154237/tkinter-problem https://mail.python.org/pipermail/tutor/2002-May/014584.html