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_()
def browseOutputDir(self): f = PyMcaFileDialogs.getExistingDirectory( parent=self, message="Please select output directory", mode="OPEN") if len(f): self._outLine.setText(f)
def browseOutputDir(self): fileList = PyMcaFileDialogs.getExistingDirectory(parent=self, message="Please select output directory", mode="OPEN") if len(fileList): self._outdirLine.setText(fileList)