Sep-26-2020, 09:23 PM
This is an example of what deanhystad is stating on using Toplevel() however in this example closing the main Tk() window (window_left) all windows close also.
from tkinter import * window_left = Tk() window_left.geometry("300x300") window_left.configure(bg='black') window_left.title("LEFT") window_right = Toplevel() window_right.geometry("300x300") window_right.configure(bg='black') window_right.title("RIGHT") Label(window_left, text="left", fg="White") Label(window_right, text="right", fg="White") window_right.mainloop() window_left.mainloop()
"Often stumped... But never defeated."