def setFieldsDark(self): ins, exp, run, num = gu.parse_xtc_path(fnm.path_dark_xtc()) self.ins.setValue(str(ins)) self.exp.setValue(str(exp)) self.run.setValue(str(num)) self.tag.setValue(cp.elog_post_tag.value()) self.msg.setValue(cp.elog_post_msg.value()) self.att.setValue(self.att_input) self.setFieldsReadOnlySet1()
def setFieldsDark(self): ins, exp, run, num = gu.parse_xtc_path(fnm.path_dark_xtc()) self.ins.setValue(str(ins)) self.exp.setValue(str(exp)) self.run.setValue(str(num)) self.tag.setValue(cp.elog_post_tag.value()) self.msg.setValue(cp.elog_post_msg.value()) self.att.setValue(self.att_input) self.setFieldsReadOnlySet1()
def on_but_path(self): logger.debug('Dark file browser', __name__ ) path = str(self.edi_path.text()) path = str( QtGui.QFileDialog.getOpenFileName(self,'Select file',path) ) dname, fname = os.path.split(path) if dname == '' or fname == '' : logger.info('Input directiry name or file name is empty... keep file path unchanged...') return cp.in_dir_dark .setValue(dname) cp.in_file_dark.setValue(fname) #self.edi_path.setText(path) self.edi_path.setText( fnm.path_dark_xtc_cond() ) logger.info('selected file: ' + str(fnm.path_dark_xtc()), __name__ ) self.set_default_pars() blp.parse_batch_log_peds_scan() self.set_fields()