def execute(self, button):
#print 'You clicked on', result
if button in ('OK','Apply'):
validation_passed = self.validate()
if validation_passed:
self.apply()
self.changes_flag = True
if button not in ('Apply',):
if self.changes_flag:
tkMessageBox.showinfo("Restart PyKeylogger",
"You must restart PyKeylogger for "
"the new settings to take effect.",
parent=self.dialog.interior())
self.dialog.destroy()
else:
if button not in ('Apply','OK'):
self.dialog.destroy()
评论列表
文章目录