예제 #1
0
 def browseOutputDirectory(self):
     if self._outputDir is None:
         self._outputDir = PyMcaDirs.outputDir
     elif os.path.exists(self._outputDir):
         PyMcaDirs.inputDir = self._outputDir
     message = "Select a Simple Fit Configuration File"
     mode = "OPEN"
     fileList = PyMcaFileDialogs.getExistingDirectory(self,
                                              message=message,
                                              mode=mode)
     if not len(fileList):
         return
     if type(fileList) != type([]):
         fileList = [fileList]
     self._outputDir = os.path.dirname(fileList[0])
     self.setOutputDirectory(fileList[0])
     self.raise_()
예제 #2
0
 def browseOutputDirectory(self):
     if self._outputDir is None:
         self._outputDir = PyMcaDirs.outputDir
     elif os.path.exists(self._outputDir):
         PyMcaDirs.inputDir = self._outputDir
     message = "Select a Simple Fit Configuration File"
     mode = "OPEN"
     fileList = PyMcaFileDialogs.getExistingDirectory(self,
                                                      message=message,
                                                      mode=mode)
     if not len(fileList):
         return
     if type(fileList) != type([]):
         fileList = [fileList]
     self._outputDir = os.path.dirname(fileList[0])
     self.setOutputDirectory(fileList[0])
     self.raise_()
예제 #3
0
 def browseOutputDir(self):
     f = PyMcaFileDialogs.getExistingDirectory(
         parent=self, message="Please select output directory", mode="OPEN")
     if len(f):
         self._outLine.setText(f)
예제 #4
0
 def browseOutputDir(self):
     fileList = PyMcaFileDialogs.getExistingDirectory(parent=self,
                                  message="Please select output directory",
                                  mode="OPEN")
     if len(fileList):
         self._outdirLine.setText(fileList)