from PyQt5 import QtWidgets from window import Window import sys app = QtWidgets.QApplication(sys.argv) app.setStyleSheet(open("style.css").read()) main_window = Window() main_window.show() sys.exit(app.exec())