コード例 #1
0
 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))
コード例 #2
0
 def OnDropFiles(self, x, y, filenames):
     for filename in filenames:
         window = fileViewerWindow.FileViewer(filename, self.parent)