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.
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.
Those are two questions, actually:
cmd.exe
window is as easy as using pythonw.exe
instead of python.exe
to run your scripts.SysTrayIcon.py
to work with Python 3 here: stackoverflow.com/a/48775936/2441026
Feb 13, 2018 at 21:43
icons.next
needs to be changed to next(icons)
as per stackoverflow.com/questions/5237611/itertools-cycle-next, and basestring
needs to be changed to str
as per stackoverflow.com/questions/34803467/… Then, the code should work as expected.