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_()
from mainwindow import Mainwindow from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import QCoreApplication import sys ORGANIZATION_NAME = "SJager" ORGANIZATION_DOMAIN = "None" APPLICATION_NAME = "redSQR" QCoreApplication.setOrganizationName(ORGANIZATION_NAME) QCoreApplication.setOrganizationDomain(ORGANIZATION_DOMAIN) QCoreApplication.setApplicationName(APPLICATION_NAME) app = QApplication(sys.argv) mw = Mainwindow() mw.show() sys.exit(app.exec_())
from mainwindow import Mainwindow from decryptor import Decryptor from encryptor import Encryptor from tkinter import * mainwindow = Mainwindow() mainwindow.loop()
import sys from PySide2.QtWidgets import QApplication from mainwindow import Mainwindow if __name__ == '__main__': app = QApplication(sys.argv) mainwindow = Mainwindow() sys.exit(app.exec_())
# -*- coding: utf-8 -*- # __author__ = 'lidong' """ Description: """ from mainwindow import Mainwindow from PyQt5.QtWidgets import QApplication import sys app = QApplication(sys.argv) mywindows = Mainwindow() mywindows.show() sys.exit(app.exec_())
from PySide2.QtWidgets import QApplication from mainwindow import Mainwindow import sys app = QApplication() window = Mainwindow() window.show() sys.exit(app.exec_())