def __call__(self, screen, todo):
t = TextboxReflowed(53,
_("A few systems will need to pass special options "
"to the kernel at boot time for the system to function "
"properly. If you need to pass boot options to the "
"kernel, enter them now. If you don't need any or "
"aren't sure, leave this blank."))
result = ""
while (result != string.lower(_("Ok")) and result != newLabel):
result = g.run()
if (buttons.buttonPressed(result)):
result = buttons.buttonPressed(result)
text = TextboxReflowed(55, _("The boot manager Red Hat uses can boot other "
"operating systems as well. You need to tell me "
"what partitions you would like to be able to boot "
"and what label you want to use for each of them."))
result = None
while (result != "ok" and result != "back" and result != "F12"):
result = g.run()
if (buttons.buttonPressed(result)):
result = buttons.buttonPressed(result)
if (result == string.lower(_("Edit")) or result == listbox):
item = listbox.current()
(label, type) = images[item]
label = self.editItem(screen, item, label)
images[item] = (label, type)
if (default == item and not label):
default = ""
listbox.replace(self.formatDevice(type, label, item, default), item)
listbox.setCurrent(item)
elif result == "F2":
item = listbox.current()
(label, type) = images[item]
if (label):
if (default):
(oldLabel, oldType) = images[default]
listbox.replace(self.formatDevice(oldType, oldLabel, default,
""), default)
default = item
listbox.replace(self.formatDevice(type, label, item, default),
item)
listbox.setCurrent(item)