summaryrefslogtreecommitdiff
path: root/tablib/packages/xlwt/examples/unicode2.py
blob: 18904b00c62e9f318310b164cdac90d0c68103e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
# -*- coding: windows-1251 -*-
# Copyright (C) 2005 Kiseliov Roman

from xlwt import *

w = Workbook()
ws1 = w.add_sheet(u'\N{GREEK SMALL LETTER ALPHA}\N{GREEK SMALL LETTER BETA}\N{GREEK SMALL LETTER GAMMA}\u2665\u041e\u041b\u042f\u2665')

fnt = Font()
fnt.height = 26*20
style = XFStyle()
style.font = fnt

for i in range(0x10000):
    ws1.write(i/0x10, i%0x10, unichr(i), style)

w.save('unicode2.xls')