def waitForWindow(title): global currentWindow currentWindow = Main.waitForWindow(title) return currentWindow
def startIJ(): Main.premain() global currentWindow currentWindow = ImageJ() currentWindow.exitWhenQuitting(True) Main.postmain()