paper-xlsxAPI referencewriter.theme
openpyxl.writer.theme
paper-xlsx 0.2.1 API reference
Write the theme xml based on a fixed string.
theme_xml
attributetheme_xml= '<?xml version="1.0"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">\n <a:themeElements>\n <a:clrScheme name="Office">\n <a:dk1>\n <a:sysClr val="windowText" lastClr="000000"/>\n </a:dk1>\n <a:lt1>\n <a:sysClr val="window" lastClr="FFFFFF"/>\n </a:lt1>\n <a:dk2>\n <a:srgbClr val="1F497D"/>\n </a:dk2>\n <a:lt2>\n <a:srgbClr val="EEECE1"/>\n </a:lt2>\n <a:accent1>\n <a:srgbClr val="4F81BD"/>\n </a:accent1>\n <a:accent2>\n <a:srgbClr val="C0504D"/>\n </a:accent2>\n <a:accent3>\n <a:srgbClr val="9BBB59"/>\n </a:accent3>\n <a:accent4>\n <a:srgbClr val="8064A2"/>\n </a:accent4>\n <a:accent5>\n <a:srgbClr val="4BACC6"/>\n </a:accent5>\n <a:accent6>\n <a:srgbClr val="F79646"/>\n </a:accent6>\n <a:hlink>\n <a:srgbClr val="0000FF"/>\n </a:hlink>\n <a:folHlink>\n <a:srgbClr val="800080"/>\n </a:folHlink>\n </a:clrScheme>\n <a:fontScheme name="Office">\n <a:majorFont>\n <a:latin typeface="Cambria"/>\n <a:ea typeface=""/>\n <a:cs typeface=""/>\n <a:font script="Jpan" typeface="MS Pゴシック"/>\n <a:font script="Hang" typeface="맑은 고딕"/>\n <a:font script="Hans" typeface="宋体"/>\n <a:font script="Hant" typeface="新細明體"/>\n <a:font script="Arab" typeface="Times New Roman"/>\n <a:font script="Hebr" typeface="Times New Roman"/>\n <a:font script="Thai" typeface="Tahoma"/>\n <a:font script="Ethi" typeface="Nyala"/>\n <a:font script="Beng" typeface="Vrinda"/>\n <a:font script="Gujr" typeface="Shruti"/>\n <a:font script="Khmr" typeface="MoolBoran"/>\n <a:font script="Knda" typeface="Tunga"/>\n <a:font script="Guru" typeface="Raavi"/>\n <a:font script="Cans" typeface="Euphemia"/>\n <a:font script="Cher" typeface="Plantagenet Cherokee"/>\n <a:font script="Yiii" typeface="Microsoft Yi Baiti"/>\n <a:font script="Tibt" typeface="Microsoft Himalaya"/>\n <a:font script="Thaa" typeface="MV Boli"/>\n <a:font script="Deva" typeface="Mangal"/>\n <a:font script="Telu" typeface="Gautami"/>\n <a:font script="Taml" typeface="Latha"/>\n <a:font script="Syrc" typeface="Estrangelo Edessa"/>\n <a:font script="Orya" typeface="Kalinga"/>\n <a:font script="Mlym" typeface="Kartika"/>\n <a:font script="Laoo" typeface="DokChampa"/>\n <a:font script="Sinh" typeface="Iskoola Pota"/>\n <a:font script="Mong" typeface="Mongolian Baiti"/>\n <a:font script="Viet" typeface="Times New Roman"/>\n <a:font script="Uigh" typeface="Microsoft Uighur"/>\n </a:majorFont>\n <a:minorFont>\n <a:latin typeface="Calibri"/>\n <a:ea typeface=""/>\n <a:cs typeface=""/>\n <a:font script="Jpan" typeface="MS Pゴシック"/>\n <a:font script="Hang" typeface="맑은 고딕"/>\n <a:font script="Hans" typeface="宋体"/>\n <a:font script="Hant" typeface="新細明體"/>\n <a:font script="Arab" typeface="Arial"/>\n <a:font script="Hebr" typeface="Arial"/>\n <a:font script="Thai" typeface="Tahoma"/>\n <a:font script="Ethi" typeface="Nyala"/>\n <a:font script="Beng" typeface="Vrinda"/>\n <a:font script="Gujr" typeface="Shruti"/>\n <a:font script="Khmr" typeface="DaunPenh"/>\n <a:font script="Knda" typeface="Tunga"/>\n <a:font script="Guru" typeface="Raavi"/>\n <a:font script="Cans" typeface="Euphemia"/>\n <a:font script="Cher" typeface="Plantagenet Cherokee"/>\n <a:font script="Yiii" typeface="Microsoft Yi Baiti"/>\n <a:font script="Tibt" typeface="Microsoft Himalaya"/>\n <a:font script="Thaa" typeface="MV Boli"/>\n <a:font script="Deva" typeface="Mangal"/>\n <a:font script="Telu" typeface="Gautami"/>\n <a:font script="Taml" typeface="Latha"/>\n <a:font script="Syrc" typeface="Estrangelo Edessa"/>\n <a:font script="Orya" typeface="Kalinga"/>\n <a:font script="Mlym" typeface="Kartika"/>\n <a:font script="Laoo" typeface="DokChampa"/>\n <a:font script="Sinh" typeface="Iskoola Pota"/>\n <a:font script="Mong" typeface="Mongolian Baiti"/>\n <a:font script="Viet" typeface="Arial"/>\n <a:font script="Uigh" typeface="Microsoft Uighur"/>\n </a:minorFont>\n </a:fontScheme>\n <a:fmtScheme name="Office">\n <a:fillStyleLst>\n <a:solidFill>\n <a:schemeClr val="phClr"/>\n </a:solidFill>\n <a:gradFill rotWithShape="1">\n <a:gsLst>\n <a:gs pos="0">\n <a:schemeClr val="phClr">\n <a:tint val="50000"/>\n <a:satMod val="300000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="35000">\n <a:schemeClr val="phClr">\n <a:tint val="37000"/>\n <a:satMod val="300000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="100000">\n <a:schemeClr val="phClr">\n <a:tint val="15000"/>\n <a:satMod val="350000"/>\n </a:schemeClr>\n </a:gs>\n </a:gsLst>\n <a:lin ang="16200000" scaled="1"/>\n </a:gradFill>\n <a:gradFill rotWithShape="1">\n <a:gsLst>\n <a:gs pos="0">\n <a:schemeClr val="phClr">\n <a:shade val="51000"/>\n <a:satMod val="130000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="80000">\n <a:schemeClr val="phClr">\n <a:shade val="93000"/>\n <a:satMod val="130000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="100000">\n <a:schemeClr val="phClr">\n <a:shade val="94000"/>\n <a:satMod val="135000"/>\n </a:schemeClr>\n </a:gs>\n </a:gsLst>\n <a:lin ang="16200000" scaled="0"/>\n </a:gradFill>\n </a:fillStyleLst>\n <a:lnStyleLst>\n <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr">\n <a:solidFill>\n <a:schemeClr val="phClr">\n <a:shade val="95000"/>\n <a:satMod val="105000"/>\n </a:schemeClr>\n </a:solidFill>\n <a:prstDash val="solid"/>\n </a:ln>\n <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr">\n <a:solidFill>\n <a:schemeClr val="phClr"/>\n </a:solidFill>\n <a:prstDash val="solid"/>\n </a:ln>\n <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr">\n <a:solidFill>\n <a:schemeClr val="phClr"/>\n </a:solidFill>\n <a:prstDash val="solid"/>\n </a:ln>\n </a:lnStyleLst>\n <a:effectStyleLst>\n <a:effectStyle>\n <a:effectLst>\n <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0">\n <a:srgbClr val="000000">\n <a:alpha val="38000"/>\n </a:srgbClr>\n </a:outerShdw>\n </a:effectLst>\n </a:effectStyle>\n <a:effectStyle>\n <a:effectLst>\n <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">\n <a:srgbClr val="000000">\n <a:alpha val="35000"/>\n </a:srgbClr>\n </a:outerShdw>\n </a:effectLst>\n </a:effectStyle>\n <a:effectStyle>\n <a:effectLst>\n <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">\n <a:srgbClr val="000000">\n <a:alpha val="35000"/>\n </a:srgbClr>\n </a:outerShdw>\n </a:effectLst>\n <a:scene3d>\n <a:camera prst="orthographicFront">\n <a:rot lat="0" lon="0" rev="0"/>\n </a:camera>\n <a:lightRig rig="threePt" dir="t">\n <a:rot lat="0" lon="0" rev="1200000"/>\n </a:lightRig>\n </a:scene3d>\n <a:sp3d>\n <a:bevelT w="63500" h="25400"/>\n </a:sp3d>\n </a:effectStyle>\n </a:effectStyleLst>\n <a:bgFillStyleLst>\n <a:solidFill>\n <a:schemeClr val="phClr"/>\n </a:solidFill>\n <a:gradFill rotWithShape="1">\n <a:gsLst>\n <a:gs pos="0">\n <a:schemeClr val="phClr">\n <a:tint val="40000"/>\n <a:satMod val="350000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="40000">\n <a:schemeClr val="phClr">\n <a:tint val="45000"/>\n <a:shade val="99000"/>\n <a:satMod val="350000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="100000">\n <a:schemeClr val="phClr">\n <a:shade val="20000"/>\n <a:satMod val="255000"/>\n </a:schemeClr>\n </a:gs>\n </a:gsLst>\n <a:path path="circle">\n <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/>\n </a:path>\n </a:gradFill>\n <a:gradFill rotWithShape="1">\n <a:gsLst>\n <a:gs pos="0">\n <a:schemeClr val="phClr">\n <a:tint val="80000"/>\n <a:satMod val="300000"/>\n </a:schemeClr>\n </a:gs>\n <a:gs pos="100000">\n <a:schemeClr val="phClr">\n <a:shade val="30000"/>\n <a:satMod val="200000"/>\n </a:schemeClr>\n </a:gs>\n </a:gsLst>\n <a:path path="circle">\n <a:fillToRect l="50000" t="50000" r="50000" b="50000"/>\n </a:path>\n </a:gradFill>\n </a:bgFillStyleLst>\n </a:fmtScheme>\n </a:themeElements>\n <a:objectDefaults/>\n <a:extraClrSchemeLst/>\n</a:theme>\n'write_theme
funcwrite_theme()Write the theme xml.