Pyqt Window Modality, More … Use a local event-loop to wait until the window/widget closes: .