modified: di_dialog.py

This commit is contained in:
fling
2011-09-01 13:58:57 +08:00
parent 77821866de
commit 311ad1dbca

View File

@@ -205,7 +205,7 @@ class Group(Dialog):
list.append((l[0],'',l[1] == 'yes' and 'on' or 'off'))
s,check_list=Dialog.dialog.checklist(text='Plase select the installation package',height=self.height,
width=self.width,list_height=len(list),choices=list,title='choices %s optional'%g)
width=self.width,choices=list,title='choices %s optional'%g)
if s == 0 and check_list :
if check_list[0] == 'check all':
@@ -246,7 +246,6 @@ class Group(Dialog):
count = count - 1
if count < 0 or count > len(check_list) - 1:
print count
break
return s
class Service(Dialog):