tkivy wizard: verify seed extension - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 94065414564c24dc2a1724f736b4a0651d1eec9e DIR parent 620a6aaf990f7dce07c3cd7ae87c4c1c9f70d505 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 13 Jan 2021 11:18:34 +0100 kivy wizard: verify seed extension Diffstat: M electrum/gui/kivy/uix/dialogs/inst… | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py t@@ -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 t@@ -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):