I’m sure I just missed an update or something somewhere (I tried to search but it’s failing me), but I have a number of FIJI Jython scripts that definitely DEFINITELY used to work, I dunno, 2ish years ago, but now when I try to run them the GenericDialog boxes just never pop up, they just proceed into the “STUFF” part of the if/else loop below.
Any clues? Any link to the dumb thing I missed?
from ij import IJ, ImagePlus, ImageStack from ij.io import DirectoryChooser from ij.gui import GenericDialog dc=DirectoryChooser("Choose a folder") topfolder=dc.getDirectory() if topfolder is None: print "User Canceled" else: gd=GenericDialog("Variables") gd.addNumericField("Number of channels",4,0) gd.addNumericField("Number of cycles",10,0) if gd.wasCanceled(): print "User canceled dialog!" else: #STUFF