def make_gui(board, main_controller, controllers, biosignal): app = QtWidgets.QApplication(sys.argv) main_scr = None if FeatureFlags.GUI: main_scr = GUI(board, biosignal, main_controller, controllers) main_scr.views.setCurrentIndex(1) if FeatureFlags.DEV_TOOLS: main_scr = DevTools(board, biosignal, main_controller, controllers) if main_scr is not None: main_scr.resize(500, 100) main_scr.show() sys.exit(app.exec_())
def main(): import sys app = QtWidgets.QApplication(sys.argv) gui = GUI() gui.show() sys.exit(app.exec_())
def main(): app = QApplication(sys.argv) window = GUI() window.show() sys.exit(app.exec_())
@email: [email protected] @date: 7/23/18 19:19 """ from PyQt5.QtWidgets import QApplication from utils.tests import Tests from domain.validator import BookValidator from repository.repository import Repository from repository.file_repo import FileRepository from service.service import Service from gui.gui import GUI import sys t = Tests() t.run_tests() val = BookValidator() #repo = Repository(val) repo = FileRepository(val, "book_file.txt") repo.clear_file() srv = Service(repo) if __name__ == '__main__': app = QApplication(sys.argv) w = GUI(srv) w.show() sys.exit(app.exec())