def workbook(self,rdbook,wtbook_name): self.rdbook = rdbook; if type(self.__rdSheetName) == int: self.__sheetIndex = self.__rdSheetName; self.__pading_sheet = self.rdbook.sheet_by_index(self.__rdSheetName); self.__rdSheetName = self.__pading_sheet.name; else: self.__pading_sheet = self.rdbook.sheet_by_name(self.__rdSheetName); self.__sheetIndex=self.sheetIndex(self.__rdSheetName); BaseWriter.workbook(self, rdbook, wtbook_name);
def workbook(self,rdbook,wtbook_name): self.rdbook = rdbook; if type(self.__rdSheetName) == int: self.__rdSheetName = self.rdbook.sheet_by_index(self.__rdSheetName).name; BaseWriter.workbook(self, rdbook, wtbook_name);