add dependency step, add service step

This commit is contained in:
lizhi-rocky
2010-08-03 14:18:19 +08:00
parent 5688e9974b
commit ba7bc3e2b0
6 changed files with 392 additions and 7 deletions

View File

@@ -210,6 +210,9 @@ class SoftwarePackageWindow():
if self.selection.get() == 'all':
for ck in self.opt_chks:
ck.configure(state='disable')
else:
for ck in self.opt_chks:
ck.configure(state='normal')
def ok(self):
@@ -218,10 +221,16 @@ class SoftwarePackageWindow():
for i in range(len(self.group.optional)):
# install field, yes or no
self.group.optional[i][1] = self.opt_vars[i].get()
# clear variables and check buttons
self.opt_vars = []
self.opt_chks = []
self.win.destroy()
def cancel(self):
''' callback function for button cancel '''
# clear variables and check buttons
self.opt_vars = []
self.opt_chks = []
self.win.destroy()
def show(self):