import tkinter as tk
win = tk.Tk()
win.title('New App')
win.geometry('800x800')
def passgen():
num = str(inp.get())
# text field for output
disp = tk.Text(master=win, height=4, width=80, )
disp.pack()
disp.insert(tk.END, num)
lab = tk.Label(text='First Label')
lab.pack()
inp = tk.Entry()
inp.pack()
btn = tk.Button(text='Submit', command=passgen)
btn.pack()
win.mainloop()
Above is my simple tkinter code but when I run it I get the output in multiple boxes. All I want is each time I use the submit button the output should be in one single box rather than multiple boxes. Is there any way to do it?I am using python 3. Screenshot