def run(self, ips, imgs, para = None): path = para['path']+'/'+para['name'] write = WriterManager.get(para['format']) print(path) for i in range(len(imgs)): self.progress(i, len(imgs)) name = '%s-%.4d.%s'%(path,i,para['format']) write(name, imgs[i])
def load(self, ips): self.filt = sorted(WriterManager.get(tag='img')) return True
def load(self, ips): self.view = [(str, 'name', 'Name', ''), (list, 'format',list(sorted(WriterManager.get())), str, 'Format', '')] return True