1
0

Installwizard: tweak hardware wallet handling

This commit is contained in:
Neil Booth
2016-01-22 22:16:58 +09:00
parent 1f75ab89fa
commit 618026f96c
3 changed files with 37 additions and 17 deletions

View File

@@ -245,7 +245,7 @@ def text_dialog(parent, title, label, ok_label, default=None):
return unicode(txt.toPlainText())
class ChoicesLayout(object):
def __init__(self, msg, choices, on_clicked=None):
def __init__(self, msg, choices, on_clicked=None, checked_index=0):
vbox = QVBoxLayout()
if len(msg) > 50:
vbox.addWidget(WWLabel(msg))
@@ -263,7 +263,7 @@ class ChoicesLayout(object):
vbox2.addWidget(button)
group.addButton(button)
group.setId(button, i)
if i==0:
if i==checked_index:
button.setChecked(True)
if on_clicked: