My code for displaying a background image:
from tkinter import *
def entrar():
#Janela Principal
janela = Tk()
janela.title("Salvadados")
janela.geometry('400x600')
#fotofundo
back = Label(janela)
back.la = PhotoImage(file = 'C:/Users/Ivan/Videos/fundim2.gif')
back['image'] = back.la
back.place(x=0,y=0)
The following error is displayed:
**File "C:\Users\Ivan\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 1473, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: image "pyimage1" doesn't exist**
Note: The enter () function is a command for a button to open this "Saved" window.