def set_enabled(): from electrum_dash.keystore import is_xprv wizard.next_button.setEnabled(is_xprv(clean_text(text)))