~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/QRCode.py

  • Committer: David Planella
  • Date: 2016-06-13 19:13:29 UTC
  • mfrom: (189.1.1 qreator)
  • Revision ID: david.planella@ubuntu.com-20160613191329-jcmx0ioq7opvpjs1
Merged fix for QR code not being generated in Ubuntu 16.04

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        # Notice the conversion to BGRA that Cairo expects
74
74
        # See http://cairographics.org/pythoncairopil/ and
75
75
        # http://mail.gnome.org/archives/gtkmm-list/2007-May/msg00111.html
76
 
        bytearr = array.array('B', self.image.tostring("raw", "BGRA", 0, 1))
 
76
        bytearr = array.array('B', self.image.tobytes("raw", "BGRA", 0, 1))
77
77
        height, width = self.image.size
78
78
        #print self.image.size
79
79