コード例 #1
0
ファイル: GUIMetrology.py プロジェクト: FilipeMaia/psdmrepo
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: GUIMetrology.py プロジェクト: FilipeMaia/psdmrepo
    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__)
コード例 #4
0
    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__)