Exemple #1
0
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_()
Exemple #2
0
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_()
Exemple #3
0
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_()
Exemple #4
0
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_()
Exemple #5
0
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_())
Exemple #6
0
from mainwindow import Mainwindow
from decryptor import Decryptor
from encryptor import Encryptor
from tkinter import *

mainwindow = Mainwindow()
mainwindow.loop()
Exemple #7
0
import sys
from PySide2.QtWidgets import QApplication
from mainwindow import Mainwindow

if __name__ == '__main__':
    app = QApplication(sys.argv)
    mainwindow = Mainwindow()
    sys.exit(app.exec_())
Exemple #8
0
# -*- 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_())
Exemple #9
0
from PySide2.QtWidgets import QApplication
from mainwindow import Mainwindow
import sys

app = QApplication()
window = Mainwindow()
window.show()
sys.exit(app.exec_())