I am learning how to create and use GUI and i have been at this for the last 24 hours. I am sure its just a small problem but i have no one to ask around.
This is the code.I expected that when i run the code it will display the title and word on my GUI but its not displaying. I don't have any error messages and i don't know what to change anymore.
from tkinter import *
BACKGROUND_COLOR = "#B1DDC6"
window = Tk()
window.title("Flash Card")
window.config(padx=50, pady=50, bg=BACKGROUND_COLOR)
canvas = Canvas(width=800, height=526)
front_image = PhotoImage(file="images/card_front.png")
canvas.create_image(400, 263, image=front_image)
canvas.create_text(400, 150, text="Title", font=("Ariel", 40, "italic"))
canvas.create_text(200, 150, text="word", font=("Ariel", 40, "normal"))
canvas.config(bg=BACKGROUND_COLOR, highlightthickness=0)
canvas.grid(column=0, row=0, columnspan=2)
window.mainloop()