示例#1
0
def main():
    if hasattr(sys, 'frozen'):
        sys.stdout = open('pynotepad_stdout.txt', 'w')
        sys.stderr = open('pynotepad_stderr.txt', 'w')
    app = QApplication(sys.argv)
    if not Settings().interpreter:
        Settings().interpreter = sys.executable
    win = MainWindow()
    win.show()
    app.exec_()
示例#2
0
def main():
    if hasattr(sys, 'frozen'):
        sys.stdout = open('pynotepad_stdout.txt', 'w')
        sys.stderr = open('pynotepad_stderr.txt', 'w')
    app = QApplication(sys.argv)
    if not Settings().interpreter:
        Settings().interpreter = sys.executable
    win = MainWindow()
    win.show()
    app.exec_()
示例#3
0
def main():
    from pyqode.qt.QtWidgets import QApplication
    import sys

    app = QApplication(sys.argv)
    #win = EditImageWindow("/home/wgryglas/test-edit.png")
    win = EditImageWindow(
        "/home/wgryglas/Downloads/car-17-boundary-conditions-right-turbulence.png"
    )
    win.show()

    sys.exit(app.exec_())
示例#4
0
def main():
    import logging
    import sys
    from pyqode.qt.QtWidgets import QApplication
    from UI import MainWindow

    # Logging
    filename = None
    if sys.platform == 'win32':
        filename = 'PyCreator.log'
        logging.basicConfig(level=logging.INFO,
                            filename=filename)  # save log to file

    app = QApplication(sys.argv)

    # ~To Do~
    # create a function to set the style by passing in the app object
    # or load style sheet from file?
    app.setStyle('Fusion')  # Needed to make dark theme look right

    win = MainWindow()
    win.show()

    sys.exit(app.exec_())
示例#5
0
def main():
    app = QApplication(sys.argv)
    win = MainWindow()
    win.show()
    app.exec_()
示例#6
0
def main():
    app = QApplication(sys.argv)
    root = MainWindow()
    root.show()
    sys.exit(app.exec_())