![]() TOOLS FOR CORRELATION # def _open_img(self): If self.spectre_file.endswith('.xyz'): self.ui.label_31.setText(os.path.basename(self.spectre_file)) filename6 = DIR2 + '/input_files/map_file.xyz' Self.spectre_file, _ = (QFileDialog.getOpenFileName( self, "Choose *.xyz", pwd,"Map file (*.xyz) ")) TOOLS FOR TIME # def on_loadfile_spec_released(self): If rr_file6.endswith('.nd'): self.ui.label_58.setText(os.path.basename(rr_file6)) filename7 = DIR2 + '/input_files/model_file.nd'Įlse: raise IOError('unknown file type *.%s' rr_file6, _ = (QFileDialog.getOpenFileName( self, "Choose *.nd", pwd,"Model file (*.nd) ")) # Return the recent end of the motor history def on_loadfile_model_released(self): Return False # If no file is loaded, return false ![]() (exc, "An error occurred while loading the file: ") If res is not None: motor = () motor.applyDict(res) self.startFromMotor(motor, path) return True ![]() Path = QFileDialog.getOpenFileName(None, 'Load motor', '', 'Motor Files (*.ric)') if path != '': # If they cancel the dialog, path will be an empty string
0 Comments
Leave a Reply. |