~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/QRCode.py

  • Committer: David Planella
  • Date: 2012-05-17 08:12:32 UTC
  • Revision ID: david.planella@ubuntu.com-20120517081232-uq92gvxfji2v68gi
First working version ready for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
    def _resize(self):
71
71
        self._set_pixel_size(self.qrcode_size)
72
 
        print self.pixel_size, self.qrcode_size
 
72
        #print self.pixel_size, self.qrcode_size
73
73
        self.image = self.image.resize((self.pixel_size * self.qrcode_size,
74
74
                                        self.pixel_size * self.qrcode_size),
75
75
                                       Image.NEAREST)
77
77
    def _set_pixel_size(self, barcode_orig_size):
78
78
        pixel_size = 1
79
79
 
80
 
        print pixel_size * barcode_orig_size, self.output_size
 
80
        #print pixel_size * barcode_orig_size, self.output_size
81
81
        while (pixel_size * barcode_orig_size < self.output_size):
82
82
            pixel_size += 1
83
83