Pyqt Wait For Window To Close