How to create a system tray popup message with python? (Windows)

后端 未结 6 1218
庸人自扰
庸人自扰 2020-12-01 00:06

I\'d like to know how to create a system tray popup message with python. I have seen those in lots of softaware, but yet difficult to find resources to do it easily with any

6条回答
  •  清歌不尽
    2020-12-01 00:29

    Here is the simple way to show notifications on windows 10 using python: module win10toast.

    Requirements:

    • pypiwin32
    • setuptools

    Installation:

    >> pip install win10toast
    

    Example:

    from win10toast import ToastNotifier
    toaster = ToastNotifier()
    toaster.show_toast("Demo notification",
                       "Hello world",
                       duration=10)
    

提交回复
热议问题