controlpanel.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:ecel 作者: ARL-UTEP-OC 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号