1
0

Abstract and enable qrscanner dialog for send screen.

This commit is contained in:
akshayaurora
2014-06-24 22:09:11 +05:30
committed by ThomasV
parent 33c89b47d8
commit f442cc31e4
7 changed files with 39 additions and 22 deletions

View File

@@ -200,6 +200,14 @@ class ElectrumWindow(App):
def set_url(self, instance, url):
self.gui_object.set_url(url)
def scan_qr(self, on_complete):
dlg = Cache.get('electrum_widgets', 'QrScannerDialog')
if not dlg:
dlg = Factory.QrScannerDialog()
Cache.append('electrum_widgets', 'QrScannerDialog', dlg)
dlg.bind(on_complete=on_complete)
dlg.open()
def build(self):
global Builder
if not Builder: