V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
vtoexsir
V2EX  ›  Python

请问 pyqt 中是否有弹出 3 秒后就自动关闭的提示信息框?

  •  
  •   vtoexsir · 2016-11-17 08:49:13 +08:00 · 5087 次点击
    这是一个创建于 2715 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的意思是,提示框弹出来之后,如果 3 秒内没有被点击,

    那么这个提示框就自动关闭.

    如果 pyqt 没有这样可有自动关闭的提示框控件,那 tkinter 是否有这样的控件?

    多谢您的回复!

    5 条回复    2016-11-22 22:43:22 +08:00
    XYxe
        1
    XYxe  
       2016-11-17 08:55:47 +08:00
    加个定时器不行吗?
    gotounix
        2
    gotounix  
       2016-11-17 09:33:28 +08:00
    QTimer
    oglop
        3
    oglop  
       2016-11-17 11:05:15 +08:00 via Android   ❤️ 2
    zsen
        4
    zsen  
       2016-11-17 11:37:38 +08:00   ❤️ 1
    QSystemTrayIcon.showMessage()
    vtoexsir
        5
    vtoexsir  
    OP
       2016-11-22 22:43:22 +08:00
    @oglop 谢谢,可行!
    @zsen 谢谢,可行!
    多谢各位!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5831 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 02:03 · PVG 10:03 · LAX 19:03 · JFK 22:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.