Ejemplo n.º 1
0
def main():
    import sys
    app = QApplication(sys.argv)
    app.setOrganizationDomain("www.openfisca.fr")
    app.setApplicationName("OpenFisca")
    mainWindow = MainWindow()
    mainWindow.show()
    sys.exit(app.exec_())
Ejemplo n.º 2
0
def main():
    import sys
    app = QApplication(sys.argv)
    app.setOrganizationDomain("www.openfisca.fr")
    app.setApplicationName("OpenFisca")
    mainWindow = MainWindow()
    mainWindow.show()
    sys.exit(app.exec_())
Ejemplo n.º 3
0
def _main():

    app = PyQt5.QtWidgets.QApplication(sys.argv)

    w = MainWindow()
    w.resize(250, 150)
    w.move(300, 300)
    w.setWindowTitle('PyJeopardy!')
    w.show()

    sys.exit(app.exec_())
Ejemplo n.º 4
0
def main():
    if os.access(main_dir, os.W_OK):
        # if yes, then put all settings in an ini file there
        path_to_settings = os.path.join(main_dir, 'settings.ini')
        settings = QtCore.QSettings(path_to_settings,
                                    QtCore.QSettings.IniFormat)
    else:
        # else use Qt settings system
        settings = QtCore.QSettings('rampage', 'Shreyas Potnis')

    w = MainWindow(settings)
    w.show()
    return app.exec_()
Ejemplo n.º 5
0
def main():
    if os.access(main_dir, os.W_OK):
        # if yes, then put all settings in an ini file there
        path_to_settings = os.path.join(main_dir, 'settings.ini')
        settings = QtCore.QSettings(path_to_settings,
                                    QtCore.QSettings.IniFormat)
    else:
        # else use Qt settings system
        settings = QtCore.QSettings('rampage', 'Shreyas Potnis')

    w = MainWindow(settings)
    w.show()
    return app.exec_()
Ejemplo n.º 6
0
def main():
    # see if we can write to main_dir
    if os.access(main_dir, os.W_OK):
        # if yes, then put all settings in an ini file there
        path_to_settings = os.path.join(main_dir, 'settings.ini')
        settings = QtCore.QSettings(path_to_settings,
                                    QtCore.QSettings.IniFormat)
    else:
        # else use Qt settings system
        settings = QtCore.QSettings('streamlogger', 'Shreyas Potnis')
    w = MainWindow(settings)
    w.setWindowIcon(QtGui.QIcon(path_to_icon))
    w.show()
    return app.exec_()
Ejemplo n.º 7
0
def main():
    # see if we can write to main_dir
    if os.access(main_dir, os.W_OK):
        # if yes, then put all settings in an ini file there
        path_to_settings = os.path.join(main_dir, 'settings.ini')
        settings = QtCore.QSettings(path_to_settings,
                                    QtCore.QSettings.IniFormat)
    else:
        # else use Qt settings system
        settings = QtCore.QSettings('streamlogger', 'Shreyas Potnis')
    w = MainWindow(settings)
    w.setWindowIcon(QtGui.QIcon(path_to_icon))
    w.show()
    return app.exec_()
Ejemplo n.º 8
0
def main() -> int:
    app = QtWidgets.QApplication(sys.argv)
    w = MainWindow()
    w.show()
    return app.exec_()
Ejemplo n.º 9
0
# coding = UTF-8


import sys

from PyQt5.QtWidgets import QApplication


if __name__ == "__main__":
    Application = QApplication(sys.argv)
    from widgets.MainWindow import MainWindow
    import Requirements_rc
    MainApplication = MainWindow()
    MainApplication.show()
    sys.exit(Application.exec_())