from tkinter import *
root = Tk()
root.geometry("500x500")
toplevel = Toplevel()
toplevel.attributes("-toolwindow" , 1)
mainloop()
In this code, when I minimize the main window and open it again, the toplevel window disappears.
Here's an image(GIF) describing my problem:
Is there any way to avoid this?
It would be great if anyone could help me out.
(OS: Windows 10, Python version: 3.9.1, Tkinter version: 8.6)