What's the simplest way to put a python script into the system tray (Windows)

后端 未结 1 1372
逝去的感伤
逝去的感伤 2020-11-30 20:09

What\'s the simplest way to put a python script into the system tray?

My target platform is Windows. I don\'t want to see the \'cmd.exe\' window.

相关标签:
1条回答
  • 2020-11-30 21:07

    Those are two questions, actually:

    1. Adding a tray icon can be done with Win32 API. Example: SysTrayIcon.py
    2. Hiding the cmd.exe window is as easy as using pythonw.exe instead of python.exe to run your scripts.
    0 讨论(0)
提交回复
热议问题