tkinter block window while another window is open code example
Example: block window if another window is open tkinter
b.grab_set() # when you show the popup
# do stuff ...
b.grab_release() # to return to normal
b.grab_set() # when you show the popup
# do stuff ...
b.grab_release() # to return to normal