mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 23:10:17 +00:00
18 lines
361 B
Python
18 lines
361 B
Python
#!/usr/bin/env python
|
|
# -*- coding: windows-1251 -*-
|
|
# Copyright (C) 2005 Kiseliov Roman
|
|
|
|
from xlwt import *
|
|
|
|
w = Workbook()
|
|
ws = w.add_sheet('Hey, Dude')
|
|
|
|
for i in range(6, 80):
|
|
fnt = Font()
|
|
fnt.height = i*20
|
|
style = XFStyle()
|
|
style.font = fnt
|
|
ws.write(i, 1, 'Test')
|
|
ws.row(i).set_style(style)
|
|
w.save('row_styles.xls')
|