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 ...

Get Tkinter GUI Application Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.