I am working on a school project and i am very new to programming. I want to know how i can take the GUI i made which contains a set of entries/labels/buttons and make the window "refresh" as you would in a normal browser. My goal is to clear the window of all the entries and buttons during this "refresh".
I thank for any advice in advance and hope my post was specific enough.
Here is a login screen without any functions.
import tkinter
import distutils
from distutils.cmd import Command
import os
from _ast import Delete
window = tkinter. Tk()
window.title("PTF Pydev Eclipse")
window.geometry("500x500")
lbl = tkinter.Label(window, text= "Username")
ent = tkinter.Entry(window)
lbl1 = tkinter.Label(window, text= "Password")
ent1 = tkinter.Entry(window)
lbl2 = tkinter.Label(window, text= "Access")
ent1.bind('<Return>', show) # Not sure if this is needed
btn = tkinter.Button(window, text="Login", command= lambda: validation())
lbl.pack()
ent.pack()
lbl1.pack()
ent1.pack()
lbl2.pack()
btn.pack()
window.mainloop()