parameters: (self, *argv)
docstring: File chooser for loading UI parameters
docstring_summary: File chooser for loading UI parameters
docstring_tokens: File chooser for loading UI parameters
function: def _file_open(self, *argv):
          """
              File chooser for loading UI parameters
          """
          fname = QFileDialog.getOpenFileName(self, "Reduction settings - Choose a settings file",
                                              self._last_directory,
                                              "Settings files (*.xml)")
          if not fname:
              return
  
          if isinstance(fname, tuple):
              fname = fname[0]
          fname = str(QFileInfo(fname).filePath())
          # Store the location of the loaded file
          self._last_directory = str(QFileInfo(fname).path())
          self.open_file(fname)
function_tokens: def _file_open ( self , * argv ) : fname = QFileDialog . getOpenFileName ( self , "Reduction settings - Choose a settings file" , self . _last_directory , "Settings files (*.xml)" ) if not fname : return if isinstance ( fname , tuple ) : fname = fname [ 0 ] fname = str ( QFileInfo ( fname ) . filePath ( ) ) # Store the location of the loaded file self . _last_directory = str ( QFileInfo ( fname ) . path ( ) ) self . open_file ( fname )