Permalink
Browse files

Merge pull request #14 from mozillazg/master

Add show() function, allowing the run_example to actually work.
Thanks @mozillazg!
  • Loading branch information...
SmileyChris committed Oct 11, 2012
2 parents 77fe7aa + 2800475 commit ad2c244f3e5aa3da46791e3aeb51d20641a9bdfb
Showing with 3 additions and 0 deletions.
  1. +3 −0 qrcode/image/pil.py
View
@@ -28,6 +28,9 @@ def drawrect(self, row, col):
y + self.box_size - 1)]
self._idr.rectangle(box, fill="black")
+ def show(self):
+ self._img.show()
+
def save(self, stream, kind=None):
if kind is None:
kind = self.kind

0 comments on commit ad2c244

Please sign in to comment.