recover the MainWindow.py