I'm trying to learn how layouts work in tkinter but i cant figure it out for the life of me. I'm simply trying to organize widgets within a frame. The problem is when I try to put a label in the frame it ignores the height, width and background I set for the frame. What am I doing wrong? Heres the code:
from tkinter import *
root=Tk()
root.title("testing")
frame=Frame(width=500, height=500, bg="darkblue")
frame.pack()
label=Label(frame, text="test")
label.grid(row=0,column=0)
root.mainloop()