How can I change the content of a window, in a GUI application using tkinter? Like when you press the button it show different text or content, replacing the original.
Example:
from Tkinter import *
app = Tk()
app.geometry("500x500")
def page2():
app2 = Tk()
app2.geometry("500x500")
Button(app, text="button", command=page2).pack()
app.mainloop()
Window one shows information1 and window 2 shows information2. I want the button to change information1 into information2, instead of open a new window.
How can one turn the first window into the second window without opening a new window?