Original Code:
search_button = Button(Frame3, text="Search", command=lambda: displaySelected(), bg="black", fg="white", font=('Arial', 10),padx=5,pady=5)
search_button.place(x=210, y=190)
How Original Output is like: Click to view for better visualisation (focus on the blue circle, ignore the other features there)
What DisplaySelected() does: Basically show data based on the Country and Institution user selects
What I have tried:
search_pic = PhotoImage(file="search.png")
search_button = Button(Frame3, image=search_pic, command=lambda: displaySelected(), bg="black", fg="white", font=('Arial', 10),padx=5,pady=5)
search_button.place(x=210, y=190)
Basically, I want to do the same function, just that instead of having the button "search", I wish to replace it with a png file instead for better appearance. However, when i run the code, my png is not shown for some reason?