改变关闭窗口的默认行为
摘要:
python 2.xfrom Tkinter import *import tkMessageBoxapp = Tk()app.title("HelloWorld")app.geometry('250x100+200+100')def shutdown(): if tkMessageBox.askokcancel(title = 'Are you sure?', message = 'Do you really want to quit?'): app.destroy() app.protocol("WM_DELET 阅读全文
posted @ 2013-10-21 10:55 梦书 阅读(184) 评论(0) 推荐(0) 编辑