Revision 66719e36 image_creator/dialog_wizard.py
b/image_creator/dialog_wizard.py | ||
---|---|---|
77 | 77 |
msg = "All necessary information has been gathered:\n\n" |
78 | 78 |
for page in self.pages: |
79 | 79 |
msg += " * %s\n" % page.info |
80 |
msg += "\nConfirm and Proceed."
|
|
80 |
msg += "\nContinue with the image creation process?"
|
|
81 | 81 |
|
82 | 82 |
ret = self.d.yesno( |
83 |
msg, width=PAGE_WIDTH, height=12, ok_label="Yes",
|
|
84 |
cancel="Back", extra_button=1, extra_label="Quit",
|
|
85 |
title="Confirmation") |
|
83 |
msg, width=PAGE_WIDTH, height=8 + len(self.pages),
|
|
84 |
ok_label="Yes", cancel="Back", extra_button=1,
|
|
85 |
extra_label="Quit", title="Confirmation")
|
|
86 | 86 |
|
87 | 87 |
if ret == self.d.DIALOG_CANCEL: |
88 | 88 |
idx -= 1 |
... | ... | |
100 | 100 |
PREV = -1 |
101 | 101 |
|
102 | 102 |
def __init__(self, **kargs): |
103 |
if 'validate' in kargs: |
|
104 |
validate = kargs['validate'] |
|
105 |
else: |
|
106 |
validate = lambda x: x |
|
103 |
validate = kargs['validate'] if 'validate' in kargs else lambda x: x |
|
107 | 104 |
setattr(self, "validate", validate) |
108 | 105 |
|
109 |
if 'display' in kargs: |
|
110 |
display = kargs['display'] |
|
111 |
else: |
|
112 |
display = lambda x: x |
|
106 |
display = kargs['display'] if 'display' in kargs else lambda x: x |
|
113 | 107 |
setattr(self, "display", display) |
114 | 108 |
|
115 | 109 |
def run(self, session, index, total): |
Also available in: Unified diff