from MainWindows import MainWindows from PyQt5.QtCore import QFile, QFileInfo from PyQt5 import QtGui, QtWidgets, QtCore import sys if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) mainwindows = MainWindows() mainwindows.MainWindow.show() sys.exit(app.exec_())