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