fix: qrtextedit constructor
This commit is contained in:
parent
1e2277bf1f
commit
193e384758
|
@ -4,8 +4,8 @@ from PyQt4.QtCore import *
|
|||
|
||||
class QRTextEdit(QTextEdit):
|
||||
|
||||
def __init__(self):
|
||||
QTextEdit.__init__(self)
|
||||
def __init__(self, text=None):
|
||||
QTextEdit.__init__(self, text)
|
||||
self.button = QToolButton(self)
|
||||
self.button.setIcon(QIcon(":icons/qrcode.png"))
|
||||
self.button.setStyleSheet("QToolButton { border: none; padding: 0px; }")
|
||||
|
|
Loading…
Reference in New Issue