def main(): import sys from PyQt5.QtWidgets import QApplication from controllers import PayrunController app = QApplication(sys.argv) ssh_file = 'views/allocat.stylesheet' with open(ssh_file, "r") as fh: app.setStyleSheet(fh.read()) ctrlr = PayrunController() ctrlr.runit() sys.exit(app.exec_())