When I run this code:
from tkinter import *
root = Tk()
fr = Frame(root, width=50, height=50).pack()
b = Button(fr, text='Click').pack()
root.mainloop()
button 'b' is outside the frame 'fr', acting as if i wrote root instead of fr in b = Button(fr, ....