electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 94065414564c24dc2a1724f736b4a0651d1eec9e
parent 620a6aaf990f7dce07c3cd7ae87c4c1c9f70d505
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 13 Jan 2021 11:18:34 +0100

kivy wizard: verify seed extension

Diffstat:
Melectrum/gui/kivy/uix/dialogs/installwizard.py | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py @@ -551,6 +551,7 @@ Builder.load_string(''' multiline: False size_hint: 1, None height: '48dp' + on_text: Clock.schedule_once(root.on_text) SeedLabel: text: root.warning @@ -792,10 +793,17 @@ class LineDialog(WizardDialog): WizardDialog.__init__(self, wizard, **kwargs) self.title = kwargs.get('title', '') self.message = kwargs.get('message', '') - self.ids.next.disabled = False + self.ids.next.disabled = True + self.test = kwargs['test'] + + def get_text(self): + return self.ids.passphrase_input.text + + def on_text(self, dt): + self.ids.next.disabled = not self.test(self.get_text()) def get_params(self, b): - return (self.ids.passphrase_input.text,) + return (self.get_text(),) class CLButton(ToggleButton): def on_release(self):