def dlg(): ui = hw_pass_dlg.HardwareWalletPassDlg(pass_available_on_device) if ui.exec_(): if ui.getEnterOnDevice(): return PASSPHRASE_ON_DEVICE else: return ui.getPassphrase() else: return None
def dlg(): ui = hw_pass_dlg.HardwareWalletPassDlg() if ui.exec_(): return ui.getPassphrase() else: return None