def _on_browse_clicked(self): load_file(self.run_input_line_edit, "*.*", self.__generic_settings, self.__path_key, self.get_file_path) # Notify presenters self._call_diagnostics_page_listeners( lambda listener: listener.on_browse_clicked())
def on_browse_save_location(self): load_file(self.save_state_line_edit, "*.json", self.__generic_settings, self.__save_location_path_key, self.get_save_location) # Correct the file extension. The output file has to be a json type file. If the user has added a different # file extension then change it to .json save_location = self.get_save_location() path_dir = os.path.dirname(save_location) if not path_dir: return file_name, _ = os.path.splitext(save_location) full_file_path = file_name + JSON_SUFFIX self.save_state_line_edit.setText(full_file_path)
def _on_browse_clicked(self): load_file(self.run_input_line_edit, "*.*", self.__generic_settings, self.__path_key, self.get_file_path) # Notify presenters self._call_diagnostics_page_listeners(lambda listener: listener.on_browse_clicked())