[entropy.output] TextInterface.input_box: fix list edit option, make possible to go back

This commit is contained in:
Fabio Erculiani
2010-01-23 00:27:36 +01:00
parent 89fefc4df0
commit 7a8b919778

View File

@@ -839,7 +839,10 @@ class TextInterface:
elif action == 2: # edit item
while True:
try:
s_el = int(readtext(darkred(_("Element number to edit:"))+" "))
edit_msg = _("Element number to edit (-1 to go back):")
s_el = int(readtext(darkred(edit_msg)+" "))
if s_el == -1:
break
if s_el not in mydict:
raise ValueError()
new_s_val = readtext("[%s] %s " % (