use this and your problem should be fix
frame = tk.Frame(root, width=600, height=400, background="seashell3") frame.pack(padx=10, pady=10) # pack it on the next line tk.Label(frame, text="Select a file to encrypt:", fg="black").pack(pady=10)