1
0

wizard.query_choice

This commit is contained in:
ThomasV
2016-08-23 10:00:46 +02:00
parent d946e9fa54
commit 63ebf7772e
2 changed files with 8 additions and 11 deletions

View File

@@ -371,6 +371,14 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
action = c_values[clayout.selected_index()]
return action
def query_choice(self, msg, choices):
"""called by hardware wallets"""
clayout = ChoicesLayout(msg, choices)
vbox = QVBoxLayout()
vbox.addLayout(clayout.layout())
self.set_main_layout(vbox, '')
return clayout.selected_index()
@wizard_dialog
def account_id_dialog(self, run_next):
message = '\n'.join([