def onButExp(self): #print 'onButExp' self.but_current = self.butExp dir = self.instr_dir.value() + '/' + self.instr_name.value() #print 'dir =', dir if self.list_of_exp is None: self.list_of_exp = sorted(os.listdir(dir)) item_selected = gu.selectFromListInPopupMenu(self.list_of_exp) if item_selected is None: return # selection is cancelled #if item_selected == self.exp_name_src.value() : return # selected the same item self.setExp(item_selected) self.setDir(fnm.path_to_calib_dir_src_default()) self.setStyleButtons() path_to_xtc_dir = fnm.path_to_xtc_dir() if os.path.lexists(path_to_xtc_dir): return msg = 'XTC data are not seen on this computer for path: %s' % path_to_xtc_dir logger.warning(msg, __name__) print msg
def onButExp(self): #print 'onButExp' self.but_current = self.butExp dir = self.instr_dir.value() + '/' + self.instr_name.value() #print 'dir =', dir if self.list_of_exp is None : self.list_of_exp=sorted(os.listdir(dir)) item_selected = gu.selectFromListInPopupMenu(self.list_of_exp) if item_selected is None : return # selection is cancelled #if item_selected == self.exp_name_src.value() : return # selected the same item self.setExp(item_selected) self.setDir(fnm.path_to_calib_dir_src_default()) self.setStyleButtons() path_to_xtc_dir = fnm.path_to_xtc_dir() if os.path.lexists(path_to_xtc_dir) : return msg = 'XTC data are not seen on this computer for path: %s' % path_to_xtc_dir logger.warning(msg, __name__) print msg