Put window 1 and 2 into separate Toplevel windows
https://effbot.org/tkinterbook/toplevel.htm
import tkinter as tk ... win1 = tk.Toplevel()Then the login button would also include the command
win1.destroyor into a function that did the login as well as self destruct, and load new window.
https://effbot.org/tkinterbook/toplevel.htm
Recommended Tutorials: