I am trying to put a frame inside another frame in tkinter. Can someone explain why it isn't working? I am just starting to learn Tkinter.
from tkinter import *
from PIL import *
if __name__=="__main__":
root = Tk()
root.title("Sales")
root.geometry("1440x855")
root.resizable(0, 0)
Label(root, text = 'Tax Invoice').pack(side = TOP, pady = 6)
frame1 = Frame(root,bg="black",width=1400,height=780).pack()
frame2 = Frame(frame1,bg="green",width=100,height=100).pack()
top.mainloop()