Types of Toplevel window

Previously in this chapter, we used the following line of code:

search_toplevel.transient(root)

Let's explore what it means here. Tkinter supports the following four types of Toplevel window:

  • The main Toplevel window: This is the type we have been constructing so far.
  • The child Toplevel window: This type is independent of the root. The Toplevel child behaves independently 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 ...

Get Tkinter GUI Application Development Blueprints - Second Edition 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.