Skip to content

Commit

Permalink
Fix identicon imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSurda committed Jun 10, 2017
1 parent d34fdbb commit f366447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitmessageqt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def identiconize(address):
idcon_render = Pydenticon(addBMIfNotPresent(address)+identiconsuffix, size*3)
rendering = idcon_render._render()
data = rendering.convert("RGBA").tostring("raw", "RGBA")
qim = QImage(data, size, size, QImage.Format_ARGB32)
pix = QPixmap.fromImage(qim)
qim = QtGui.QImage(data, size, size, QtGui.QImage.Format_ARGB32)
pix = QtGui.QPixmap.fromImage(qim)
idcon = QtGui.QIcon()
idcon.addPixmap(pix, QtGui.QIcon.Normal, QtGui.QIcon.Off)
return idcon
Expand Down

0 comments on commit f366447

Please sign in to comment.