Exemple #1
0
 def open_file_dialog(self):
     start_path = os.path.dirname(str(self.filepath.text()))
     if not os.path.exists(start_path):
         start_path = qt.QString.null
     path = qt.QFileDialog.getOpenFileName(start_path, qt.QString.null, self)
     if not path.isNull():
         self.filepath.setText(path)
Exemple #2
0
 def onChooseInitImage(self):
     path = str(self.ui.mEdInitImageFile.text())
     path = QtGui.QFileDialog.\
         getOpenFileName(self, "Open Init. Image", path,
                         "FITS Images (*.fits)")
     if not path.isNull():
         self.ui.mEdInitImageFile.setText(path)
Exemple #3
0
 def open_file_dialog(self):
     start_path = os.path.dirname(ConvertUtils.text_type(self.filepath.text()))
     if not os.path.exists(start_path):
         start_path = ""
     path = qt_import.QFileDialog(self).getOpenFileName(directory=start_path)
     if not path.isNull():
         self.filepath.setText(path)
Exemple #4
0
 def open_file_dialog(self):
     start_path = os.path.dirname(str(self.filepath.text()))
     if not os.path.exists(start_path):
         start_path = ''
     path = QtGui.QFileDialog(self).getOpenFileName(directory=start_path)
     if not path.isNull():
         self.filepath.setText(path)
 def open_file_dialog(self):
     start_path = os.path.dirname(str(self.filepath.text()))
     if not os.path.exists(start_path):
         start_path = ''
     path = QtGui.QFileDialog(self).getOpenFileName(directory=start_path)
     if not path.isNull():
         self.filepath.setText(path)
Exemple #6
0
 def onChooseInputDirectory(self):
     path = str(self.ui.mEdInputDirectory.text())
     path = QtGui.QFileDialog.\
         getExistingDirectory(self, "Input Directory", path)
     if not path.isNull():
         self.ui.mEdInputDirectory.setText(path)