trying to add a dynamic image tied to a StringVar variable in tkinter but the image is not shown on the screen
it is in a label inside a ttk.LabelFrame, which in theory should work
# Hand
handsContainner = ttk.LabelFrame(text='Hero Hand')
handsContainner.grid(row=2, column=0, **self.centeredPaddings)
handsContainner.rowconfigure(index=0,weight=1)
handsContainner.columnconfigure(index=0,weight=1)
handsContainner.columnconfigure(index=1,weight=1)
photo = tk.PhotoImage(file='./cards/4h.png')
firstCard = ttk.Label(handsContainner, image=photo)
firstCard.grid(row=0,column=0)
what's the best way to do this thinking of reading a dataframe, and with each update of the variables to reload the correct image linked to them?