def initAppWithGui(appArgs=sys.argv): util.qtFrameworkList = ['PyQt', 'PySide'] from cadnanoqt import CadnanoQt global sharedApp sharedApp = CadnanoQt(appArgs) sharedApp.finishInit() if util.isWindows(): pass # import ctypes # myappid = 'harvard.cadnano.cadnano2.2' # arbitrary string # ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) return sharedApp
def initAppMaya(appArgs=sys.argv): import util util.qtFrameworkList = ['PyQt', 'PySide'] from cadnanoqt import CadnanoQt global sharedApp sharedApp = CadnanoQt(appArgs) return sharedApp