Tkinter How to Create a Popup Message in Python1 min read

Creating the main window: Tk().
Creation of the modal window: Toplevel().

Warning: only one loop mainloop() corresponding to the main window.

The main_window_name.wait_window (popup window_name) method stops the main script until the popup window is closed.

The pop_popup.grab_set () method prevents any interaction with the main window.

Leave a Comment