简体   繁体   English

如何使用pyexcelerator的xlwt util为整个行着色

[英]How to color the entire row using xlwt util of pyexcelerator

The util talks about a function called this util讨论了一个名为this的函数

style0 = xlwt.easyxf(
'font: name Times New Roman, colour_index red'
)

there is color red instead of color_index too . 还有color red代替color_index

Is there any provision to color the entire row? 是否有为整个行着色的规定?

pattern: pattern solid

这可以用于向行中添加颜色...然后您可以添加所需的颜色。

pattern: pattern solid,fore-color "COLOR NAME"

You asked this question on the python-excel forum and got a comprehensive answer there ... 您在python-excel论坛上问了这个问题,并在那里获得了全面的 答案 ...

By the way: xlwt is a fork of pyExcelerator , with bug-fixes and many enhancements. 顺便说一句: xlwt是叉子pyExcelerator ,与错误修正和许多增强功能。 pyExcelerator is effectively abandoned. pyExcelerator实际上已被放弃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM