split bip32 from bitcoin.py
This commit is contained in:
@@ -7,9 +7,8 @@ from PyQt5.Qt import QVBoxLayout, QLabel
|
||||
|
||||
from electrum.gui.qt.util import *
|
||||
from electrum.i18n import _
|
||||
from electrum.plugin import hook, DeviceMgr
|
||||
from electrum.util import PrintError, UserCancelled, bh2u
|
||||
from electrum.wallet import Wallet, Standard_Wallet
|
||||
from electrum.plugin import hook
|
||||
from electrum.util import bh2u
|
||||
|
||||
from ..hw_wallet.qt import QtHandlerBase, QtPluginBase
|
||||
from ..hw_wallet.plugin import only_hook_if_libraries_available
|
||||
@@ -253,7 +252,7 @@ class QtPlugin(QtPluginBase):
|
||||
else:
|
||||
msg = _("Enter the master private key beginning with xprv:")
|
||||
def set_enabled():
|
||||
from keystore import is_xprv
|
||||
from electrum.bip32 import is_xprv
|
||||
wizard.next_button.setEnabled(is_xprv(clean_text(text)))
|
||||
text.textChanged.connect(set_enabled)
|
||||
next_enabled = False
|
||||
|
||||
Reference in New Issue
Block a user