def run(sim): app = QApplication([]) app.resources = load_resources() w = Mainwindow(sim) if 1: w.showMaximized() else: w.setGeometry(QStyle.alignedRect(Qt.LeftToRight, Qt.AlignCenter, w.size(), app.desktop().availableGeometry())) w.show() app.exec_()
def run(sim): app = QApplication([]) app.resources = load_resources() w = Mainwindow(sim) if 1: w.showMaximized() else: w.setGeometry( QStyle.alignedRect(Qt.LeftToRight, Qt.AlignCenter, w.size(), app.desktop().availableGeometry())) w.show() app.exec_()
def run(sim, gui_option, *args, **kwargs): app = QApplication([]) font = app.font() font.setFamily('Consolas') font.setPointSize(8) app.setFont(font) app.resources = load_resources() w = Mainwindow(sim, gui_option, *args, **kwargs) if 1: w.showMaximized() else: w.setGeometry( QStyle.alignedRect(Qt.LeftToRight, Qt.AlignCenter, w.size(), app.desktop().availableGeometry())) w.show() app.exec_()
def run(sim, gui_option, *args, **kwargs): app = QApplication([]) font = app.font() font.setFamily('Consolas') font.setPointSize(8) app.setFont(font) app.resources = load_resources() w = Mainwindow(sim, gui_option, *args, **kwargs) if 1: w.showMaximized() else: w.setGeometry(QStyle.alignedRect( Qt.LeftToRight, Qt.AlignCenter, w.size(), app.desktop().availableGeometry() )) w.show() app.exec_()