I am attempting to display an image from a file in my program. The python file is in the same folder as my image file and I have the file name correct. When it displays on the screen, the space is taken up where the image should be, but no image shows.
from tkinter import *
from PIL import ImageTk,Image
import tkinter as tk
cardImageLabel=Label(playerFrame, image=tk.PhotoImage(file="2C.png")).grid(row=1, column=0)
This is my code, it's a bit ugly and I should separate it but I'm more used to formatting it like this.