mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
qt qrcode: fix DeprecationWarning (float->int conversion)
...\electrum\electrum\gui\qt\qrcodewidget.py:88: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. qp.drawRect(left+c*boxsize, top+r*boxsize, boxsize - 1, boxsize - 1)
This commit is contained in:
parent
211118ae81
commit
d0ab003978
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ class QRCodeWidget(QWidget):
|
|||
for r in range(k):
|
||||
for c in range(k):
|
||||
if matrix[r][c]:
|
||||
qp.drawRect(left+c*boxsize, top+r*boxsize, boxsize - 1, boxsize - 1)
|
||||
qp.drawRect(int(left+c*boxsize), int(top+r*boxsize),
|
||||
boxsize - 1, boxsize - 1)
|
||||
qp.end()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue