def editor(self, event): from mien.image.viewer import ImageViewer i=ImageViewer(self.cv) i.Show(True) i.select(self.stack)
print time.time()-ma else: doc=None if gui: if switches.has_key('v'): if not doc: print "No files specified to view. Exiting" sys.exit() a=io.getViewerApp(doc) if a: switches['a']=a if switches.has_key('a'): app=switches['a'].lower() if app.startswith('i'): from mien.image.viewer import ImageViewer x = ImageViewer() elif app.startswith('c'): from mien.interface.cellview3D import CellViewer print "using OpenGL" x = CellViewer() elif app.startswith('da'): from mien.datafiles.viewer import Dataviewer x = Dataviewer() elif app.startswith('w'): from mien.sound.synth import WFGui x = WFGui() elif app.startswith('ds'): #dsp from mien.dsp.gui import DspGui x = DspGui() else: