1
0

wizard: scan hardware devices directly

This commit is contained in:
ThomasV
2016-08-23 13:40:11 +02:00
parent 0520eda628
commit 4781df9d21
5 changed files with 61 additions and 43 deletions

View File

@@ -338,13 +338,13 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
self.show_message(msg)
@wizard_dialog
def confirm_dialog(self, msg, run_next):
self.confirm(msg)
def confirm_dialog(self, title, message, run_next):
self.confirm(message, title)
def confirm(self, msg):
def confirm(self, message, title):
vbox = QVBoxLayout()
vbox.addWidget(WWLabel(msg))
self.set_main_layout(vbox)
vbox.addWidget(WWLabel(message))
self.set_main_layout(vbox, title)
@wizard_dialog
def action_dialog(self, action, run_next):
@@ -379,6 +379,13 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
self.set_main_layout(vbox, '')
return clayout.selected_index()
def get_passphrase(self, msg, confirm):
phrase = self.pw_layout(msg, PW_PASSPHRASE)
if phrase is None:
raise UserCancelled
return phrase
@wizard_dialog
def account_id_dialog(self, run_next):
message = '\n'.join([