fix qrscanner module

This commit is contained in:
thomasv 2013-03-15 14:15:32 +01:00
parent 6662c1dc53
commit 8d4f409dd7
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ def parse_uri(uri):
def fill_from_qr(self): def fill_from_qr(self):
qrcode = qrscanner.scan_qr() qrcode = scan_qr()
if 'address' in qrcode: if 'address' in qrcode:
self.payto_e.setText(qrcode['address']) self.payto_e.setText(qrcode['address'])
if 'amount' in qrcode: if 'amount' in qrcode:
@ -93,7 +93,7 @@ def fill_from_qr(self):
def create_send_tab(gui, grid): def create_send_tab(gui, grid):
if qrscanner.is_available(): if is_available():
b = QPushButton(_("Scan QR code")) b = QPushButton(_("Scan QR code"))
b.clicked.connect(lambda: fill_from_qr(gui)) b.clicked.connect(lambda: fill_from_qr(gui))
grid.addWidget(b, 1, 5) grid.addWidget(b, 1, 5)