Python - excel - xlwt: colouring every second row
- by konjo
Hi,
i just finish some MYSQL to excel script with xlwt and I need to colour every second row for easy reading.
I have tried this:
row = easyxf('pattern: pattern solid, fore_colour blue')
for i in range(0,10,2):
ws0.row(i).set_style(row)
Alone this colouring is fine, but when when I write my data rows are again white.
Can some please show me some example 'cuz I m lost in coding :/
Best Regards.