Skip to content

Commit 9616962

Browse files
committed
menu_qrcode pylint fixes
1 parent 5c847ed commit 9616962

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/plugins/menu_qrcode.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# -*- coding: utf-8 -*-
22
"""
3+
src/plugins/menu_qrcode.py
4+
==========================
5+
36
A menu plugin showing QR-Code for bitmessage address in modal dialog.
47
"""
58

9+
from pybitmessage.tr import _translate
10+
611
import urllib
712

813
import qrcode
914
from PyQt4 import QtGui, QtCore
1015

11-
from pybitmessage.tr import _translate
12-
1316

1417
# http://stackoverflow.com/questions/20452486
15-
class Image(qrcode.image.base.BaseImage):
18+
class Image(qrcode.image.base.BaseImage): # pylint: disable=abstract-method
1619
"""Image output class for qrcode using QPainter"""
20+
1721
def __init__(self, border, width, box_size):
22+
super(Image, self).__init__()
1823
self.border = border
1924
self.width = width
2025
self.box_size = box_size
@@ -39,6 +44,7 @@ def drawrect(self, row, col):
3944

4045
class QRCodeDialog(QtGui.QDialog):
4146
"""The dialog"""
47+
4248
def __init__(self, parent):
4349
super(QRCodeDialog, self).__init__(parent)
4450
self.image = QtGui.QLabel(self)

0 commit comments

Comments
 (0)