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_()
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_())
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_())
def main(): app = QApplication(sys.argv) win = MainWindow() win.show() app.exec_()
def main(): app = QApplication(sys.argv) root = MainWindow() root.show() sys.exit(app.exec_())