summaryrefslogtreecommitdiff
path: root/tablib/packages/xlwt/examples/image.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-10-06 13:42:52 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-10-06 13:42:52 -0400
commit96c93871cf1e8f047b6656912636cc638f2a1808 (patch)
tree877c6e814b2ef0e5670b52121c5f79d709021e77 /tablib/packages/xlwt/examples/image.py
parenta54949bc08e7323bb7b276d8b8acd7ab0ec5a397 (diff)
downloadtablib-96c93871cf1e8f047b6656912636cc638f2a1808.tar.gz
Vendorized XLWT.
Diffstat (limited to 'tablib/packages/xlwt/examples/image.py')
-rw-r--r--tablib/packages/xlwt/examples/image.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tablib/packages/xlwt/examples/image.py b/tablib/packages/xlwt/examples/image.py
new file mode 100644
index 0000000..f926b8d
--- /dev/null
+++ b/tablib/packages/xlwt/examples/image.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+# -*- coding: windows-1251 -*-
+# Copyright (C) 2005 Kiseliov Roman
+
+from xlwt import *
+
+w = Workbook()
+ws = w.add_sheet('Image')
+ws.insert_bitmap('python.bmp', 2, 2)
+ws.insert_bitmap('python.bmp', 10, 2)
+
+w.save('image.xls')