In my simple GUI whenever I press the button the text is supposed to be packed inside the frame, but upon pressing the frame disappears.
Here is the code:
import tkinter as tk
window=tk.Tk()
window.geometry('600x600')
window.resizable(False,False)
f1=tk.Frame(window,height=200,width=200,bg='yellow')
f1.place(x=400,y=400)
some=tk.StringVar()
def press():
msg=some.get()
l1=tk.Label(f1,text=str(msg))
l1.pack()
e1=tk.Entry(window,textvariable=some)
e1.pack()
b1=tk.Button(window,text='press',command=press)
b1.pack()
window.mainloop()
The text is packed but the frame disappeared.