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