You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
616 B
20 lines
616 B
from kivy.app import App |
|
from kivy.factory import Factory |
|
from kivy.properties import ObjectProperty |
|
|
|
Factory.register('QrScannerDialog', module='electrum_gui.kivy.uix.dialogs.qr_scanner') |
|
|
|
class NewContactDialog(Factory.AnimatedPopup): |
|
|
|
def load_qr_scanner(self): |
|
self.dismiss() |
|
App.get_running_app().scan_qr(on_complete=self.on_complete) |
|
|
|
def on_complete(self, instance, uri): |
|
self.new_contact(uri=uri) |
|
|
|
def new_contact(self, uri={}): |
|
# load NewContactScreen |
|
app = App.get_running_app() |
|
#app.root. |
|
# set contents of uri in the new contact screen
|
|
|