def main(): if gui.debug: barf("DBG", "Starting Main Loop", True, False) app = QApplication(argv) ex = gui.MainWindow() exit(app.exec_())
if system() == "Windows": import ctypes myappid = 'KittyTristy.ADLMIDIpyGUI.0.3.0' # arbitrary string ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) # Init and display the error window def error(): app = QApplication(argv) ex = gui.NotFound() exit(app.exec_()) # Check if out platform's ADLMIDI binary exists, if not, display error window try: fbin = file(gui.binary, 'r') if gui.debug: barf("DEF", "", False) barf("MSG", "Found ADLMIDI binary", True, False) except Exception as e: error() exit() # Init and display the main window def main(): if gui.debug: barf("DBG", "Starting Main Loop", True, False) app = QApplication(argv) ex = gui.MainWindow() exit(app.exec_()) # Call the Main Loop if __name__ == '__main__': main()