Types of Toplevel windows
In a code previously in this chapter, we used the following line:
search_toplevel.transient(root)
Let's understand what it means here. Tkinter supports the following four types of Toplevel windows:
The main Toplevel window: These are the ones that we have constructed so far.
The child Toplevel window: These are the ones that are independent of the root. The Toplevel child behaves independent of its root, but it gets destroyed if its parent is destroyed.
The transient Toplevel window: This always appears at the top of its parent, but it does not entirely grab the focus. Clicking again on the parent window allows you to interact with it. The transient window is hidden when the parent is minimized, and it is destroyed if the parent is destroyed. Compare this to what is called a modal window. A modal window grabs all the focus from the parent window and asks a user to first close the modal window before getting access back to the parent window.
The undecorated Toplevel window...