def ImportData(self, filelist): for filepath in filelist: base = os.path.basename(filepath) ext = os.path.splitext(base)[1] if ext.lower() == ".ig2py": spec = Data.Ig2Py2Data(filepath) if spec != None: self.NewData(spec) elif ext.lower() == ".arpy": spec = Data.ArPy2Data(filepath) if spec != None: self.NewData(spec) elif ext.lower() == ".pxt": specList = IgorPackedFile2Data(filepath, True) for spec in specList: self.NewData(spec) elif ext.lower() == ".pxp": specList = IgorPackedFile2Data(filepath, False) for spec in specList: self.NewData(spec)