def onViewLastFile(self, event=None): filenames = cockpit.experiment.experiment.getLastFilenames() if filenames: window = fileViewerWindow.FileViewer(filenames[0], self) if len(filenames) > 1: print( "Opening first of %d files. Others can be viewed by dragging them from the filesystem onto the main window of the Cockpit." % len(filenames))
def OnDropFiles(self, x, y, filenames): for filename in filenames: window = fileViewerWindow.FileViewer(filename, self.parent)