How to handle wizard? to switch in wizard mode: set $::isWizard to true; if $::Wizard_no_previous is set to true, the wizard won't display the previous button. Usefull for first step if $::Wizard_finished is set to true, the wizard will display Finish instead of Next. Usefull for last step how to code: Code as if there were no wizard. OK button is displayed as Next Cancel is displayed as Previous a additional button Cancel is added, xhich die with the exception 'wizard_cancelled' You have to handle the previous button. For example: step 1: ask_from list( blablablabl) or return; step2: ask_from list( blablablabl) or goto step1; step3: ask_from list( blablablabl) or goto step2; etc... You don't have to handle the wizard Cancel button as it send an exception. Understood? If yes, you'll see that there is a pb with ask_yesorno. In this case, yes+next returns true, no+next returns false, Cancel send the exception 'wizard_canceled' and previous send the exception 'wizard previous'. So you have to handle the previous button manually. plop. dam's, pour vous servir 2009.0'>distro/mdv2009.0 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-04-21 12:41:00 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-04-21 12:41:00 +0000
commitcf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98 (patch)
tree0d8adcac404f4c14912a98a30c86305da2cbcb47
parent01cf0fa40f2106e5146f67911dd60dc5b69d966a (diff)
downloaddrakx-cf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98.tar
drakx-cf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98.tar.gz
drakx-cf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98.tar.bz2
drakx-cf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98.tar.xz
drakx-cf506a30fbf0f8558cc0e3f28ef82e6ab74b5a98.zip
update
Diffstat