Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

python可以实现延时提示框吗?

python可以实现延时提示框吗?
python程序从后台弹出一个messagebox,希望它一直浮在屏幕角上直到用户点击关闭或延时关闭;
第二种,延时关闭或用户选择点击yes 或 no按钮程序作出相应处理。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

现在可以用线程关闭
win32api.MessageBox(0, "这是一个测试提醒OK消息框", "提醒",win32con.MB_OK)
提示窗口;但是不知道如何关闭

win32api.MessageBox(0, "这是一个测试是否信息框", "提醒",win32con.MB_YESNO)
窗口

win32api.SendMessage(handle,         ,0,0)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...