def onButFileText(self): logger.debug('onButFileText', __name__) but = self.butFileText edi = self.ediFileText par = self.fname_metrology_text basename = os.path.basename( fnm.path_metrology_ptrn() ) fname, ext = os.path.splitext(basename) filter = 'Text files (' + fname + '*' + ext + ')\nAll files (*)' self.onButFile(but, edi, par, filter, set_path=False)
def onButFileText(self): logger.debug('onButFileText', __name__) but = self.butFileText edi = self.ediFileText par = self.fname_metrology_text basename = os.path.basename(fnm.path_metrology_ptrn()) fname, ext = os.path.splitext(basename) filter = 'Text files (' + fname + '*' + ext + ')\nAll files (*)' self.onButFile(but, edi, par, filter, set_path=False)
def onButConvert(self): logger.debug('onButConvert', __name__) #ifname = fnm.path_metrology_xlsx() #ofname = fnm.path_metrology_text() list_ofnames = convert_xlsx_to_text(fnm.path_metrology_xlsx(), fnm.path_metrology_ptrn(), print_bits=0) msg = 'File %s is converted to the temporarty metrology text file(s):\n' % fnm.path_metrology_xlsx() for name in list_ofnames : msg += ' %s\n' % name logger.info(msg, __name__)
def onButConvert(self): logger.debug('onButConvert', __name__) #ifname = fnm.path_metrology_xlsx() #ofname = fnm.path_metrology_text() list_ofnames = convert_xlsx_to_text(fnm.path_metrology_xlsx(), fnm.path_metrology_ptrn(), print_bits=0) msg = 'File %s is converted to the temporarty metrology text file(s):\n' % fnm.path_metrology_xlsx( ) for name in list_ofnames: msg += ' %s\n' % name logger.info(msg, __name__)