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

后端 未结 6 1209
庸人自扰
庸人自扰 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条回答
  •  -上瘾入骨i
    2020-12-01 00:47

    You will need to use a 3rd party python GUI library or the pywin32 library. TkInter, the GUI toolkit that comes bundled with python does not support system tray pop ups.

    Multiform neutral libraries that support working with the system tray:

    • wxPython
    • PyGTK
    • PyQT

    Windows specific library that supports working with the system tray:

    • pywin32

    Information/example of system tray pop ups using wxpython on windows:

    • Unable to use wx.NotificationMessage properly with wxPython

提交回复
热议问题