#Arayüz python dosyam
from tkinter import *
from PIL import ImageTk, Image
def ekran():
root = Tk()
root.geometry("1500x650")
temp = ImageTk.PhotoImage(file="C:/Users/Tugrul/Desktop/adem.jpg")
label_foto = Label(root, bg = "black", image=temp).place(x=10, y=10)
root.mainloop()
#main dosyam
from Sınıflar import *
from Arayüz import *
from tkinter import *
from PIL import ImageTk, Image
ekran()
"""sinif_A = Sınıflar("6A")
sinif_B = Sınıflar("6B")
sinif_C = Sınıflar("6C")
sinif_D = Sınıflar("6D")
sinif_E = Sınıflar("6E")
sinif_F = Sınıflar("6F")
sinif_G = Sınıflar("6G")
sinif_H = Sınıflar("6H")"""
Aldığım hata:C:/Program Files/Python38-32/python.exe" “c:/Users/Tugrul/Desktop/Class ile Kura/Main.py”
Traceback (most recent call last):
File “c:/Users/Tugrul/Desktop/Class ile Kura/Main.py”, line 10, in
ekran()
File “c:\Users\Tugrul\Desktop\Class ile Kura\Arayüz.py”, line 11, in ekran
label_foto = Label(root, bg = “black”, image=temp).place(x=10, y=10)
File “C:\Program Files\Python38-32\lib\tkinter_init_.py”, line 3143, in init
Widget.init(self, master, ‘label’, cnf, kw)
File “C:\Program Files\Python38-32\lib\tkinter_init_.py”, line 2567, in init
self.tk.call(
_tkinter.TclError: image “pyimage1” doesn’t exist