This is the code...
from tkinter import *
import PIL
count = 0
def click():
global count
count+=1
print(count)
window = Tk()
photo = PhotoImage(file='Flanderson.png')
button = Button(window,
text="Draw A Card",
command=click,
font=("Comic Sans",30),
fg="#00FF00",
bg="black",
activeforeground="#00FF00",
activebackground="black",
state=ACTIVE,
image=photo,
compound='bottom')
button.pack()
window.mainloop()
So I am trying to download add an image to my button but "PhotoImage not defined" error occurs also "No module named PIL"
I installed Pillow via pip but nothing changes