帮酷LOGO
  • 显示原文与译文双语对照的内容
Python script to display Windows 10 Toast Notifications

  • 源代码名称:Windows-10-Toast-Notifications
  • 源代码网址:http://www.github.com/jithurjacob/Windows-10-Toast-Notifications
  • Windows-10-Toast-Notifications源代码文档
  • Windows-10-Toast-Notifications源代码下载
  • Git URL:
    git://www.github.com/jithurjacob/Windows-10-Toast-Notifications.git
  • Git Clone代码到本地:
    git clone http://www.github.com/jithurjacob/Windows-10-Toast-Notifications
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/jithurjacob/Windows-10-Toast-Notifications
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • Windows 10 Toast通知

    made-with-pythonFOSSA StatusHitCountMIT license

    用于显示 Windows 10 Toast通知的easy-to-use python 库,这对 Windows GUI开发非常有用。

    o7ja4 1

    安装

    pip install win10toast

    要求

    pywin32的安装

    pypiwin32
    setuptools

    示例

    from win10toast import ToastNotifier
    toaster = ToastNotifier()
    toaster.show_toast("Hello World!!!",
    "Python is 10 seconds awsm!",
     icon_path="custom.ico",
     duration=10)
    toaster.show_toast("Example two",
    "This notification is in it's own thread!",
     icon_path=None,
     duration=5,
     threaded=True)
    # Wait for threaded notification to finish
    while toaster.notification_active(): time.sleep(0.1)

    贡献者 contributions welcome

    许可证

    FOSSA Status




    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语