python3 fixes

This commit is contained in:
ThomasV 2017-08-24 16:19:47 +02:00
parent 1a6e41cec8
commit 01736197f8
1 changed files with 6 additions and 2 deletions

View File

@ -527,13 +527,17 @@ class ShowSeedDialog(WizardDialog):
message = _("If you forget your PIN or lose your device, your seed phrase will be the only way to recover your funds.")
ext = False
def __init__(self, wizard, **kwargs):
super(ShowSeedDialog, self).__init__(wizard, **kwargs)
self.seed_text = kwargs['seed_text']
def on_parent(self, instance, value):
if value:
app = App.get_running_app()
self._back = _back = partial(self.ids.back.dispatch, 'on_release')
def options_dialog(self):
from seed_options import SeedOptionsDialog
from .seed_options import SeedOptionsDialog
def callback(status):
self.ext = status
d = SeedOptionsDialog(self.ext, callback)
@ -564,7 +568,7 @@ class RestoreSeedDialog(WizardDialog):
self.ext = False
def options_dialog(self):
from seed_options import SeedOptionsDialog
from .seed_options import SeedOptionsDialog
def callback(status):
self.ext = status
d = SeedOptionsDialog(self.ext, callback)