def _write_styles_file(self): # Write the style xml file. xlsx_dir = self.package_dir xf_formats = self.workbook.xf_formats palette = self.workbook.palette font_count = self.workbook.font_count num_format_count = self.workbook.num_format_count border_count = self.workbook.border_count fill_count = self.workbook.fill_count custom_colors = self.workbook.custom_colors dxf_formats = self.workbook.dxf_formats styles = Styles() self._mkdir(xlsx_dir + '/xl') styles._set_style_properties([ xf_formats, palette, font_count, num_format_count, border_count, fill_count, custom_colors, dxf_formats]) styles._set_xml_writer(xlsx_dir + '/xl/styles.xml') styles._assemble_xml_file()